[issue40832] hi param in bisect module should not accept negative values

Vikash Raja Samuel Selvin report at bugs.python.org
Mon Jun 1 01:21:27 EDT 2020


Vikash Raja Samuel Selvin <selvin.samuel2 at gmail.com> added the comment:

Thanks for your comments. Just to make sure I understood correctly, even though something like  bisect.bisect_right(l, 5.1, 0, -2) [This returns 0 which is wrong] is allowed, since it is not common / intended it is ok to not check for negative values for hi.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40832>
_______________________________________


More information about the Python-bugs-list mailing list