Status of PEP's?
Jeff Shannon
jeff at ccvcorp.com
Mon Mar 4 14:24:53 EST 2002
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.)
Um... isn't this exactly what xrange() does? Or am I missing something again?
Jeff Shannon
Technician/Programmer
Credit International
More information about the Python-list
mailing list