[Python-checkins] python/nondist/peps pep-0322.txt,1.2,1.3

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Thu Sep 25 23:07:59 EDT 2003


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

Modified Files:
	pep-0322.txt 
Log Message:
Fix typos.

Index: pep-0322.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0322.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pep-0322.txt	25 Sep 2003 16:18:28 -0000	1.2
--- pep-0322.txt	26 Sep 2003 03:07:56 -0000	1.3
***************
*** 16,20 ****
  
  This proposal is to extend the API of several sequence types
! to include methods for iterating over the sequence in reverse.
  
  
--- 16,20 ----
  
  This proposal is to extend the API of several sequence types
! to include a method for iterating over the sequence in reverse.
  
  
***************
*** 182,186 ****
  
    - fallback to:  ``for i in xrange(len(obj)-1,-1,-1): yield obj[i]``
!   - fallback to:  ``for i in itertools.count(): yield[obj[-i]]``
    - fallback to:  ``tmp=list(obj); tmp.reverse();  return iter(tmp)``
  
--- 182,186 ----
  
    - fallback to:  ``for i in xrange(len(obj)-1,-1,-1): yield obj[i]``
!   - fallback to:  ``for i in itertools.count(): yield obj[-i]``
    - fallback to:  ``tmp=list(obj); tmp.reverse();  return iter(tmp)``
  





More information about the Python-checkins mailing list