[Python-checkins] python/nondist/peps pep-0322.txt,1.7,1.8

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Tue Oct 28 16:21:33 EST 2003


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1:/tmp/cvs-serv13072

Modified Files:
	pep-0322.txt 
Log Message:
The alternative builtin needed a better name.



Index: pep-0322.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0322.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** pep-0322.txt	28 Oct 2003 20:40:56 -0000	1.7
--- pep-0322.txt	28 Oct 2003 21:21:31 -0000	1.8
***************
*** 157,165 ****
  ==================
  
! 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.
  
  
--- 157,166 ----
  ==================
  
! 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.
  
  





More information about the Python-checkins mailing list