PEP 276 Simple Iterator for ints (fwd)

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Tue Dec 4 09:01:13 CET 2001


Tue, 04 Dec 2001 18:24:49 +1300, Greg Ewing <greg at cosc.canterbury.ac.nz> pisze:

>> There is another question: should the upper bound be reevaluated each
>> time?
> 
> I'd say no. Most of the time I wouldn't want that,
> and would object to paying for it when I didn't
> need it. When I wanted it, I'd write a while loop.

I agree.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^
QRCZAK



More information about the Python-list mailing list