From 56db09501881ab517079e459aa9777ac1039b767 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 6 Sep 2000 23:34:25 +0000 Subject: Another typo (in the list comprehension example). --- Misc/NEWS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: [ 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: -- cgit v0.12