[issue26653] bisect raises a TypeError when hi is None
Mike Lenzen
report at bugs.python.org
Wed Mar 30 23:42:15 EDT 2016
Mike Lenzen added the comment:
Sounds good, but then I think the docs could be clearer about this. I scratched my head at the function signature bisect.bisect_left(a, x, lo=0, hi=len(a)) because it isn't valid (in Python, maybe in C?), so I checked the source and saw hi=None. I'm not sure how to concisely describe it though. Listing two signatures doesn't seem ideal.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26653>
_______________________________________
More information about the Python-bugs-list
mailing list