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

Raymond Hettinger report at bugs.python.org
Thu Jul 9 14:18:43 EDT 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

If the implementation made it easy, I would add the check.  But since it would be an invasive change, I'm inclined to pass on it because it is so uncommon — the lo and hi arguments are rarely used, even more rarely with a negative hi paired with a non-negative lo  — I've never seen this arise in practice ever.

If someone does find a real-world case where this was problematic, feel free to reopen this and we'll find a way to squeeze in the extra range check.

----------
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list