[issue34842] Incorrect error messages in bisect

Serhiy Storchaka report at bugs.python.org
Sat Sep 29 08:19:03 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

It was fixed in issue32500. This is a new feature and it was not backported.

>>> bisect.bisect_right(dict.fromkeys(range(10)), 5)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: dict is not a sequence
>>> bisect.bisect_right(dict.fromkeys(range(10)), 5, 0, 10)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: dict is not a sequence

----------
nosy: +rhettinger, serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34842>
_______________________________________


More information about the Python-bugs-list mailing list