[Python-Dev] Features for Python 2.0

Guido van Rossum guido@beopen.com
Tue, 25 Jul 2000 11:47:18 -0500


> I would also like to volunteer to repeat the "simultaneous loop" syntax
> experiment with list comprehensions, i.e. see whether what's being
> proposed lines up with people's pre-existing intuitions.

Please do!

Though I have no doubt of the outcome:

  [x+y for x in [10, 20, 30] for y in [1, 2, 3]]

will be almost universally understood to mean

  [11, 12, 13, 21, 22, 23, 31, 32, 33].

--Guido van Rossum (home page: http://dinsdale.python.org/~guido/)