mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[Bug #997166] Fix example
This commit is contained in:
parent
fdccf1ad6e
commit
e3e1ecacd5
1 changed files with 4 additions and 5 deletions
|
@ -592,9 +592,8 @@ expressions. The differences are:
|
||||||
[11, 12, 13, 14, 15, 16, 17, 18, 19]
|
[11, 12, 13, 14, 15, 16, 17, 18, 19]
|
||||||
>>> L # original is left unchanged
|
>>> L # original is left unchanged
|
||||||
[9,7,8,3,2,4,1,6,5]
|
[9,7,8,3,2,4,1,6,5]
|
||||||
|
>>> sorted('Monty Python') # any iterable may be an input
|
||||||
>>> sorted('Monte Python') # any iterable may be an input
|
[' ', 'M', 'P', 'h', 'n', 'n', 'o', 'o', 't', 't', 'y', 'y']
|
||||||
[' ', 'M', 'P', 'e', 'h', 'n', 'n', 'o', 'o', 't', 't', 'y']
|
|
||||||
|
|
||||||
>>> # List the contents of a dict sorted by key values
|
>>> # List the contents of a dict sorted by key values
|
||||||
>>> colormap = dict(red=1, blue=2, green=3, black=4, yellow=5)
|
>>> 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
|
The author would like to thank the following people for offering
|
||||||
suggestions, corrections and assistance with various drafts of this
|
suggestions, corrections and assistance with various drafts of this
|
||||||
article: Raymond Hettinger.
|
article: Michael Dyck, Raymond Hettinger.
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue