Comment on PEP-0322: Reverse Iteration Methods

Raymond Hettinger vze4rx4y at
Sat Sep 27 04:15:37 CEST 2003

> >    It crashes when applied to an infinite iterator.

[Steve Holden]
> Hmm. My little brain is having difficulty imagining anything that won't.
> What am I missing?

The PEP proposes adding a method only to a few objects
that don't have degenerate cases:  list, str, unicode, xrange
and possibly tuple.

Raymond Hettinger

More information about the Python-list mailing list