[Python-ideas] list.sort with a int or str key

Nick Coghlan ncoghlan at gmail.com
Fri Sep 17 14:14:23 CEST 2010


On Fri, Sep 17, 2010 at 1:11 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> It is easy to not know about these. I think the doc set could usefully use
> an expanded entry on *key functions* (that would be a cross-reference link)
> that includes examples like the above. Currently, for example, the min entry
> has "The optional keyword-only key argument specifies a one-argument
> ordering function like that used for list.sort()." but there is no link and
> going to list.sort only adds "that is used to extract a comparison key from
> each list element: key=str.lower. The default value is None." Perhaps we
> could expand that and make the existing cross-references into links.

Tracker issue to capture this idea: http://bugs.python.org/issue9886

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list