[Python-Dev] Re: PEP 322: Reverse Iteration
Delaney, Timothy C (Timothy)
tdelaney at avaya.com
Tue Nov 4 16:57:43 EST 2003
> From: Alex Martelli [mailto:aleaxit at yahoo.com]
> or reversed(enumerate(seq)) if the index IS needed.
Hmm - wouldn't this give an iterator that returned two values - an iterable for the seq, and an iterable for the indexes of seq?
I would think this would need to be:
with the presumption being that reversed would reverse each parameter and return them in lockstep.
More information about the Python-Dev