[ python-Bugs-1117063 ] Typo in list.sort() documentation

SourceForge.net noreply at sourceforge.net
Sun Feb 6 00:48:03 CET 2005


Bugs item #1117063, was opened at 2005-02-06 00:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1117063&group_id=5470

Category: Documentation
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Viktor Ferenczi (complex)
Assigned to: Nobody/Anonymous (nobody)
Summary: Typo in list.sort() documentation

Initial Comment:
There is a (8) note in the documentation of list
methods. (8) describes optional arguments of the sort()
method. The example is wrong for the key argument:

key specifies a function of one argument that is used
to extract a comparison key from each list element:
"cmp=str.lower" 

Is should be:

key specifies a function of one argument that is used
to extract a comparison key from each list element:
"key=str.lower" 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1117063&group_id=5470


More information about the Python-bugs-list mailing list