[Python-ideas] Optional key to `bisect`'s functions?

Terry Reedy tjreedy at udel.edu
Thu Feb 9 03:42:53 CET 2012

On 2/8/2012 5:18 PM, Amaury Forgeot d'Arc wrote:

> This was proposed several times on the issue tracker (search for "bisect
> key"),
> and these proposals have always been rejected:
> http://bugs.python.org/issue4356
> http://bugs.python.org/issue1451588
> http://bugs.python.org/issue3374

Do these all suggest a specific api and if so, do they agree?

> The last one summarizes the reasons of the rejection.
> The documentation (http://docs.python.org/library/bisect.html, "see also")
> contains a link to a "SortedCollection" recipe.
> I haven't looked at the SortedCollection class in detail, but you could
> try to have it included in the stdlib...

Terry Jan Reedy

More information about the Python-ideas mailing list