Status of PEP's?

David Eppstein eppstein at ics.uci.edu
Fri Mar 1 20:12:40 EST 2002


In article <mailman.1015028704.21047.python-list at python.org>,
 James_Althoff at i2.com wrote:

> I was thinking in a more general sense: I would like to create an iterator
> with start, end, and step values and pass it into a function without first
> actualizing it as a list (like one would have to do using for+relational in
> conjunction with list comp.s).  And use the same construct in for-loops,
> list comp.s, etc.  (For those just tuning in: I realize that I can create a
> class for this -- actually, I already have.  I'm refering to proposals for
> new idioms in Python for iterating intervals of integers.)

Well, you can still always use xrange...
Or the recently proposed [yield x for ...] generator-comprehension syntax.
-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/



More information about the Python-list mailing list