Remove the revrange() proposal.
This commit is contained in:
parent
1ae49ce2cc
commit
2aa6c861f6
11
pep-0322.txt
11
pep-0322.txt
|
@ -159,17 +159,6 @@ library and comments on why reverse iteration was necessary:
|
||||||
underlying list is altered during iteration.
|
underlying list is altered during iteration.
|
||||||
|
|
||||||
|
|
||||||
Active Alternative
|
|
||||||
==================
|
|
||||||
|
|
||||||
A simpler, but limited alternative is to create a builtin that takes
|
|
||||||
the same arguments as *range()* but returns a reverse iterator over the
|
|
||||||
range. The idea is that much of the benefit of *reversed()* comes
|
|
||||||
reducing the intellectual effort it takes to express the arguments for
|
|
||||||
[x]range() when going backwards. A good name is needed for this
|
|
||||||
alternative -- *revrange()* is cleanest so far.
|
|
||||||
|
|
||||||
|
|
||||||
Rejected Alternatives
|
Rejected Alternatives
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue