[issue26653] bisect raises a TypeError when hi is None
Mike Lenzen
report at bugs.python.org
Mon Mar 28 00:00:48 EDT 2016
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)
----------
components: Library (Lib)
messages: 262551
nosy: Mike Lenzen, rhettinger
priority: normal
severity: normal
status: open
title: bisect raises a TypeError when hi is None
type: behavior
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26653>
_______________________________________
More information about the Python-bugs-list
mailing list