The alternative builtin needed a better name.
This commit is contained in:
parent
6f412ebc5e
commit
e680cb67de
11
pep-0322.txt
11
pep-0322.txt
|
@ -156,11 +156,12 @@ library and comments on why reverse iteration was necessary:
|
|||
Active Alternative
|
||||
==================
|
||||
|
||||
A simpler, but limited alternative is to create a builtin called
|
||||
reverse_range() that takes the same arguments as range() but returns a
|
||||
reverse iterator over the range. The idea is that much of the benefit
|
||||
of inreverse() comes reducing the intellectual effort it takes to
|
||||
express the arguments for [x]range() when going backwards.
|
||||
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 inreverse() 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 Alternative
|
||||
|
|
Loading…
Reference in New Issue