[ python-Bugs-1172554 ] "cmp" should be "key" in sort doc

SourceForge.net noreply at sourceforge.net
Tue Mar 29 17:35:10 CEST 2005


Bugs item #1172554, was opened at 2005-03-29 09:22
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1172554&group_id=5470

Category: Documentation
Group: Python 2.4
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Keith Briggs (kbriggs)
Assigned to: Nobody/Anonymous (nobody)
Summary: "cmp" should be "key" in sort doc

Initial Comment:
http://www.python.org/doc/current/lib/typesseq-
mutable.html:

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

I think should be 

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

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

>Comment By: Raymond Hettinger (rhettinger)
Date: 2005-03-29 10:35

Message:
Logged In: YES 
user_id=80475

Thanks for the report.
This was already fixed.
You should see it in the new Py2.4.1.

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

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


More information about the Python-bugs-list mailing list