Comment on PEP-0322: Reverse Iteration Methods
Mel Wilson
mwilson at the-wire.com
Sat Sep 27 10:14:39 EDT 2003
In article <Pine.LNX.4.44.0309251950570.11383-100000 at urchin.earth.li>,
Tom Anderson <twic at urchin.earth.li> wrote:
>On Thu, 25 Sep 2003, Steve Holden wrote:
>
>> "Raymond Hettinger" <vze4rx4y at verizon.net> wrote ...
>> > Please comment on the new PEP for reverse iteration methods.
>> [...]
>> > It crashes when applied to an infinite iterator.
>> [...]
>> Hmm. My little brain is having difficulty imagining anything that won't.
>> What am I missing?
>
>ideally, riter(riter(someInfiniteIterator)) would work, though!
:> But I wouldn't wait for it, any more than I would
wait for
t = 1 / (1 / 0.0)
I can imagine seeing an InfiniteIteratorException coming up
if I were to call for generalized reverse iteration wrongly.
Regards. Mel.
More information about the Python-list
mailing list