[issue26653] bisect raises a TypeError when hi is None

2016-03-30 Thread Mike Lenzen
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

[issue26653] bisect raises a TypeError when hi is None

2016-03-27 Thread Mike Lenzen
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) -- c