[Python-Dev] Features for Python 2.0
Eric S. Raymond
esr@thyrsus.com
Tue, 25 Jul 2000 12:07:27 -0400
Guido van Rossum <guido@beopen.com>:
> > 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].
This is my expectation as well.
--
<a href="http://www.tuxedo.org/~esr">Eric S. Raymond</a>
The abortion rights and gun control debates are twin aspects of a deeper
question --- does an individual ever have the right to make decisions
that are literally life-or-death? And if not the individual, who does?