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/2001-February/012936.html below:

[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib sre_constants.py (etc)

[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib sre_constants.py (etc)Greg Ewing greg@cosc.canterbury.ac.nz
Fri, 16 Feb 2001 12:41:53 +1300 (NZDT)
Fredrik Lundh <fredrik@effbot.org>:

> for _i in range(len(__all__)-1,-1,-1):

On a slightly wider topic, it might be nice to have
a clearer way of iterating backwards over a range.

How about a function such as

  revrange(n1, n2)

which would produce the same sequence of numbers
as range(n1, n2) but in the opposite order.
(Plus corresponding xrevrange() of course.)

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+



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