[Python-Dev] Re: accumulator display syntax

David Eppstein eppstein at ics.uci.edu
Fri Oct 17 17:10:20 EDT 2003


In article <5.1.0.14.0.20031017162527.03eb58a0 at mail.telecommunity.com>,
 "Phillip J. Eby" <pje at telecommunity.com> wrote:

> >I am beginning to find it all a bit confusing and unsettling.
> 
> Ironically, with iterator comprehension in place, a list comprehension 
> would now look like a list containing an iterator, which I agree might be 
> confusing.

Along with that confusion, (x*x for x in S) would look like a tuple 
comprehension, rather than a bare iterator.

-- 
David Eppstein                      http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science




More information about the Python-Dev mailing list