From: Guido van Rossum Date: Wed, 6 Sep 2000 23:34:25 +0000 (+0000) Subject: Another typo (in the list comprehension example). X-Git-Tag: v2.0b2~444 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56db09501881ab517079e459aa9777ac1039b767;p=thirdparty%2FPython%2Fcpython.git Another typo (in the list comprehension example). --- diff --git a/Misc/NEWS b/Misc/NEWS index 4cd443c77099..a16263b86926 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -122,7 +122,7 @@ from another list (or lists). The simplest form is: [ for in ] -For example, [x**2 for i in range(4)] yields the list [0, 1, 4, 9]. +For example, [i**2 for i in range(4)] yields the list [0, 1, 4, 9]. This is more efficient than map() with a lambda. You can also add a condition: