News for hackers. Stuff that matters.
Re:Strange line of Python by divtxt on Friday November 18, 2011 @08:41AM (#3251661)
I too expected the syntax list comprehensions to chained.

Turns out that nesting is a feature:

http://www.python.org/dev/peps/pep-0202/

- The form [... for x... for y...] nests, with the last index varying fastest, just like nested for loops.

There are no comments on this comment yet.