diff options
author | Guido van Rossum <guido@python.org> | 2000-09-06 23:34:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-09-06 23:34:25 (GMT) |
commit | 56db09501881ab517079e459aa9777ac1039b767 (patch) | |
tree | ab3da7892711b1ce315f4053dfb1c8df4ab36ddd | |
parent | 4d46d38292525b3a018ea84418432fedd5418b8c (diff) | |
download | cpython-56db09501881ab517079e459aa9777ac1039b767.zip cpython-56db09501881ab517079e459aa9777ac1039b767.tar.gz cpython-56db09501881ab517079e459aa9777ac1039b767.tar.bz2 |
Another typo (in the list comprehension example).
-rw-r--r-- | Misc/NEWS | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |