[ python-Bugs-997166 ] What's New in 2.4: sorted(): doc bug?
SourceForge.net
noreply at sourceforge.net
Sat Jul 24 20:48:54 CEST 2004
Bugs item #997166, was opened at 2004-07-24 11: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=997166&group_id=5470
Category: Documentation
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Dyck (jmdyck)
Assigned to: Nobody/Anonymous (nobody)
Summary: What's New in 2.4: sorted(): doc bug?
Initial Comment:
http://www.python.org/dev/doc/devel/whatsnew/node7.html
("What's New in Python 2.4": "Other Language Changes")
In the blurb for sorted(), it has:
>>> L = [9,7,8,3,2,4,1,6,5]
>>> [10+i for i in sorted(L)] # usable in a list
comprehension
[11, 12, 13, 14, 15, 16, 17, 18, 19]
>>> L = [9,7,8,3,2,4,1,6,5] # original is left
unchanged
[9,7,8,3,2,4,1,6,5]
I think the second-last line should just be
>>> L # original is left unchanged
----
Also, in
>>> sorted('Monte Python')
it might be less distracting to use the 'standard'
spelling "Monty".
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=997166&group_id=5470
More information about the Python-bugs-list
mailing list