A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-November/039979.html below:

[Python-Dev] PEP 322: Reverse Iteration

[Python-Dev] PEP 322: Reverse Iteration [Python-Dev] PEP 322: Reverse IterationJeremy Fincher fincher.8 at osu.edu
Tue Nov 4 19:57:33 EST 2003
On Tuesday 04 November 2003 06:44 pm, Guido van Rossum wrote:
> >     for i, value in reversed(enumerate(listofnum)):
>
> Sorry, this doesn't work.  enumerate() returns an iterator, reversed()
> requires a sequence.

I believe the assumption is that enumerate (as well as the proposed irange) 
would grow an __reversed__ method to handle just that usage.

Jeremy

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4