[issue4356] Add "key" argument to "bisect" module functions

Terry J. Reedy report at bugs.python.org
Thu Feb 9 18:42:25 CET 2012


Terry J. Reedy <tjreedy at udel.edu> added the comment:

On python-ideas, thread "Optional key to `bisect`'s functions?" Guido wrote "Bingo. That clinches it. We need to add key=." 'That' being the fact that values that have keys may not be comparable themselves (in py3), so that comparing (key,value) pairs may raise TypeError. This follows a reply by him yesterday saying that he has wanted this feature occasionally. I am re-opening this rather than a new issue because there is already a patch with tests.

----------
components: +Library (Lib) -Documentation
nosy: +gvanrossum
priority: low -> normal
resolution: fixed -> 
stage:  -> patch review
status: closed -> open
versions: +Python 3.3 -Python 2.7, Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4356>
_______________________________________


More information about the Python-bugs-list mailing list