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 no
New submission from Mike Lenzen:
>>> bisect.bisect([1, 2, 3], 1, hi=None)
TypeError: 'NoneType' object cannot be interpreted as an integer
I'm assuming this is an error in the C implementation because the Python source
has:
if hi is None:
hi = len(a