PEP 322: Reverse Iteration (second revision, please comment)

Michele Simionato mis6 at pitt.edu
Thu Oct 30 05:49:30 EST 2003


"Raymond Hettinger" <vze4rx4y at verizon.net> wrote in message news:<cy3ob.33369$4O1.10013 at nwrdny01.gnilink.net>...
> Based on the feedback here on comp.lang.python, the pep has been
> updated:
> 
>     www.python.org/peps/pep-0322.html
> 

Thinking about the idea, I realized that my use case for "reversed" 
would be very very little: definitely, not enough to justify a new
built-in. OTOH, I would not be opposed to empowering "enumerate" 
which I use all the time. Something like 

  enumerate(iterable,'reversed')

or variations.

Just my opinion,

                                 Michele




More information about the Python-list mailing list