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

Brian Scearce report at bugs.python.org
Thu Apr 15 00:01:08 CEST 2010


Brian Scearce <bls at pathetique.com> added the comment:

For what it's worth, after I posted my comment, I realized I could use tuple comparison semantics:

   loc = bisect.bisect(mapping, (line,))

since my key happens to be at index 0.  "key=" would still be nice.

----------

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


More information about the Python-bugs-list mailing list