You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/path/to/bisect_test.py", line 5, in<module>
print(bisect.bisect(a, ('one', 1), key=operator.itemgetter(0)))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'tuple' and 'str'
It seems that picking an item in a tuple has a problem.
CPython versions tested on:
3.12
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered:
Bug report
Bug description:
bisect functions raise TypeError when called with key argument.
Here is a minimum code to reproduce the issue:
This results in the following error:
It seems that picking an item in a tuple has a problem.
CPython versions tested on:
3.12
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: