Mike Neergaard
Mike Neergaard
I see a modification to [Modules/_bisectmodule.c](https://github.com/python/cpython/compare/main...rruuaanng:cpython:gh125889#diff-02d3dd896d6d030e5c6c3e0961f9a4760a37b50bb05a2d89e4ab627a8f1a7b9f) If someone somehow winds up running the python code in Lib/bisect.py, would it still have the bug?
Bounds checking sounds great to me.
>Idea 2: make it work with negative values. It does not make sense however to only make negative hi work so we'll >need to change the behaviour of a negative...
Not sure what the general mood is on backwards compatibility. If existing code sometimes passes hi
It's a useless comment, but I will remark that this discussion is excellent both in technical depth and tone, and I appreciate both.
I don't know that it changes anything, but I was able to get the C module to fail as well with the parameters ``` a = [0,1,2,3,4] x = 8...
The initial answer is yes, so you can take yes for an answer. A different answer is that if I want to propose a faster bisection algorithm (which I do),...