![](https://secure.gravatar.com/avatar/7b43f399ad17706bee01be8cd20165b0.jpg?s=120&d=mm&r=g)
Update of /cvsroot/python/python/nondist/peps In directory sc8-pr-cvs1:/tmp/cvs-serv31368 Modified Files: pep-0322.txt Log Message: Offer the community a choice for a simpler, limited alternative. Index: pep-0322.txt =================================================================== RCS file: /cvsroot/python/python/nondist/peps/pep-0322.txt,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** pep-0322.txt 28 Oct 2003 10:16:32 -0000 1.6 --- pep-0322.txt 28 Oct 2003 20:40:56 -0000 1.7 *************** *** 154,157 **** --- 154,167 ---- + 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. + + Rejected Alternative ====================
participants (1)
-
rhettingerīŧ users.sourceforge.net