]> granicus.if.org Git - python/commitdiff
SF #990497: Fix a trivial typo in sorted() example.
authorHye-Shik Chang <hyeshik@gmail.com>
Sat, 17 Jul 2004 13:53:48 +0000 (13:53 +0000)
committerHye-Shik Chang <hyeshik@gmail.com>
Sat, 17 Jul 2004 13:53:48 +0000 (13:53 +0000)
(Submitted by Daniel Pezely)

Doc/whatsnew/whatsnew24.tex

index 2e62823b83e5a546ccf5f750f2e8fa9b10de115f..3b33d8a390ab4dc18cfb2540ebe395a346a0e2da 100644 (file)
@@ -540,7 +540,7 @@ expressions.  The differences are:
 >>> 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
+>>> L                               # original is left unchanged
 [9,7,8,3,2,4,1,6,5]   
 
 >>> sorted('Monte Python')          # any iterable may be an input