[Python-Dev] accumulator display syntax

Guido van Rossum guido at python.org
Tue Oct 21 18:31:58 EDT 2003

> Would this mean:
> [x for x in S] is a list comprehension and
> [(x for x in S)] is a list containing one generator expression?

Yes.  (Raymond, you might mention this in the PEP.)

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

More information about the Python-Dev mailing list