summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-06 23:34:25 (GMT)
committerGuido van Rossum <guido@python.org>2000-09-06 23:34:25 (GMT)
commit56db09501881ab517079e459aa9777ac1039b767 (patch)
treeab3da7892711b1ce315f4053dfb1c8df4ab36ddd /Misc
parent4d46d38292525b3a018ea84418432fedd5418b8c (diff)
downloadcpython-56db09501881ab517079e459aa9777ac1039b767.zip
cpython-56db09501881ab517079e459aa9777ac1039b767.tar.gz
cpython-56db09501881ab517079e459aa9777ac1039b767.tar.bz2
Another typo (in the list comprehension example).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS2
1 files changed, 1 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 4cd443c..a16263b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -122,7 +122,7 @@ from another list (or lists). The simplest form is:
[<expression> for <variable> in <sequence>]
-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: