Comment on PEP-0322: Reverse Iteration Methods

Raymond Hettinger vze4rx4y at verizon.net
Fri Sep 26 22:15:37 EDT 2003


[Raymond]
> >    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