Pre-PEP: reverse iteration methods
Terry Reedy
tjreedy at udel.edu
Tue Sep 23 22:01:40 EDT 2003
"Raymond Hettinger" <vze4rx4y at verizon.net> wrote in message
news:HA5cb.185$kD3.168 at nwrdny03.gnilink.net...
> for i in xrange(n).iter_backwards():
> print seqn[i]
>
> for elem in seqn.iter_backwards():
> print elem
I would prefer a much shorter name, such as riter for reverse/right
iter. This goes along with current nomenclature such as rfind, etc.
Terry J. Reedy
More information about the Python-list
mailing list