Comment on PEP-0322: Reverse Iteration Methods

Tom Anderson twic at urchin.earth.li
Thu Sep 25 14:52:03 EDT 2003


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.
>
> Looks good. But
>
> [...]
> >    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!

tom

-- 
I see large and small words on this page, arranged in long rows separated by little dotty characters. Suspect written by little dotty characters, too. -- RonJeffries





More information about the Python-list mailing list