[Python-Dev] list comprehensions again...

Paul Prescod paul@prescod.net
Wed, 12 Jul 2000 03:52:41 -0500


Gordon McMillan wrote:
> 
> Paul Prescod wrote:
> 
> > Nested (List):
> >
> > [for x in (0,10,20,30):
> >         for y in (0,1,2,3):
> >                 x+y]
> > [0,11,22,33]
> 
> Not what I'd expect at all.

No, I'm just an idiot. What you expect is what I meant. No excuse.

-- 
 Paul Prescod - Not encumbered by corporate consensus
Simplicity does not precede complexity, but follows it. 
	- http://www.cs.yale.edu/~perlis-alan/quotes.html