[issue37229] bisect: Allow a custom compare function
Raymond Hettinger
report at bugs.python.org
Tue Jun 11 11:35:03 EDT 2019
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Sorry, but we've intentionally removed generic compare functions in favor of objects supporting __lt__. That is now the one-way-to-do-it. If needed for convenience, you can use functools.cmp_to_key to automatically build a wrapper.
----------
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37229>
_______________________________________
More information about the Python-bugs-list
mailing list