diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-07-26 18:52:48 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-07-26 18:52:48 (GMT) |
commit | e3e1ecacd5464076f49b1dcc84e9f9b6d074ceee (patch) | |
tree | 1b78238cbf218157e05acdba36fd12a764833063 | |
parent | fdccf1ad6ea12e666daea61280ec6e86f16cdad7 (diff) | |
download | cpython-e3e1ecacd5464076f49b1dcc84e9f9b6d074ceee.zip cpython-e3e1ecacd5464076f49b1dcc84e9f9b6d074ceee.tar.gz cpython-e3e1ecacd5464076f49b1dcc84e9f9b6d074ceee.tar.bz2 |
[Bug #997166] Fix example
-rw-r--r-- | Doc/whatsnew/whatsnew24.tex | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/whatsnew/whatsnew24.tex b/Doc/whatsnew/whatsnew24.tex index 507d9f3..8ee9da6 100644 --- a/Doc/whatsnew/whatsnew24.tex +++ b/Doc/whatsnew/whatsnew24.tex @@ -591,10 +591,9 @@ expressions. The differences are: >>> [10+i for i in sorted(L)] # usable in a list comprehension [11, 12, 13, 14, 15, 16, 17, 18, 19] >>> L # original is left unchanged -[9,7,8,3,2,4,1,6,5] - ->>> sorted('Monte Python') # any iterable may be an input -[' ', 'M', 'P', 'e', 'h', 'n', 'n', 'o', 'o', 't', 't', 'y'] +[9,7,8,3,2,4,1,6,5] +>>> sorted('Monty Python') # any iterable may be an input +[' ', 'M', 'P', 'h', 'n', 'n', 'o', 'o', 't', 't', 'y', 'y'] >>> # List the contents of a dict sorted by key values >>> colormap = dict(red=1, blue=2, green=3, black=4, yellow=5) @@ -1049,6 +1048,6 @@ changes to your code: The author would like to thank the following people for offering suggestions, corrections and assistance with various drafts of this -article: Raymond Hettinger. +article: Michael Dyck, Raymond Hettinger. \end{document} |