From: Hye-Shik Chang Date: Sat, 17 Jul 2004 13:53:48 +0000 (+0000) Subject: SF #990497: Fix a trivial typo in sorted() example. X-Git-Tag: v2.4a2~225 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b05248e8b2111d36abf17e99ef3f45f5ce11437;p=thirdparty%2FPython%2Fcpython.git SF #990497: Fix a trivial typo in sorted() example. (Submitted by Daniel Pezely) --- diff --git a/Doc/whatsnew/whatsnew24.tex b/Doc/whatsnew/whatsnew24.tex index 2e62823b83e5..3b33d8a390ab 100644 --- a/Doc/whatsnew/whatsnew24.tex +++ b/Doc/whatsnew/whatsnew24.tex @@ -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