[issue26653] bisect raises a TypeError when hi is None

Raymond Hettinger report at bugs.python.org
Tue Mar 29 01:37:16 EDT 2016


Raymond Hettinger added the comment:

Sorry, I don't think that is a good idea.  The use of None as a placeholder for optional arguments is legitimate and well enshrined in Python history.  The code is bisect is very old, stable, and battle-tested.  There isn't a real bug here, nothing is broken; instead, we have a near pedantic notion that the C-version must be forced to replicate a minor and irrelevant implementation detail of the Python version that goes beyond what the docs guarantee.  I recommend closing this as "not a bug".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26653>
_______________________________________


More information about the Python-bugs-list mailing list