> But it's easy for the algorithm to hide subtle bugs.
For sure, but I guarantee you the interviewer from the grandparent comment wasn't looking for correctness and safety when they asked to implement a binary search.
They ask the binary search question to check if the applicant knows what an algorithm is and if they ever had to implement one. (Any algorithm.)
Sadly, 90% of programmers these days don't and haven't.
> In Python you should probably just use the bisect module in practice, most of the time, rather than reimplementing it.
Well, yes, most developers ship software without ever having to actually program.