[Python-checkins] CVS: python/nondist/peps pep-0234.txt,1.7,1.8
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 27 Apr 2001 08:33:05 -0700
Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv26250
Modified Files:
pep-0234.txt
Log Message:
Add (minimal) discussion about restartability.
Index: pep-0234.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0234.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** pep-0234.txt 2001/04/27 15:26:54 1.7
--- pep-0234.txt 2001/04/27 15:33:02 1.8
***************
*** 169,172 ****
--- 169,176 ----
implementations (e.g. function-wrapping iterators).
+ - Some folks have requested the ability to restart an iterator. I
+ believe this should be dealt with by calling iter() on a
+ sequence repeatedly, not by the iterator protocol itself.
+
- It was originally proposed that rather than having a next()
method, an iterator object should simply be callable. This was