[PEP202 listcomps] (was RE: [Python-Dev] Product iteration)

Guido van Rossum guido@beopen.com
Wed, 26 Jul 2000 08:00:33 -0500


> is there any special reason why we cannot use colon instead
> of "for"?

Would conflict with the proposed syntax for range literals.  Both

  [0:10]

and

  [x : x in seq]

have the same syntactical form.

--Guido van Rossum (home page: http://www.pythonlabs.com/~guido/)