[Python-checkins] python/dist/src/Misc NEWS,1.444,1.445

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Mon, 22 Jul 2002 20:44:38 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv12934

Modified Files:
	NEWS 
Log Message:
News about StopIteration as a "sink state".


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.444
retrieving revision 1.445
diff -C2 -d -r1.444 -r1.445
*** NEWS	23 Jul 2002 03:32:08 -0000	1.444
--- NEWS	23 Jul 2002 03:44:35 -0000	1.445
***************
*** 7,10 ****
--- 7,18 ----
  Core and builtins
  
+ - All standard iterators now ensure that, once StopIteration has been
+   raised, all future calls to next() on the same iterator will also
+   raise StopIteration.  There used to be various counterexamples to
+   this behavior, which could caused confusion or subtle program
+   breakage, without any benefits.  (Note that this is still an
+   iterator's responsibility; the iterator framework does not enforce
+   this.)
+ 
  - Ctrl+C handling on Windows has been made more consistent with
    other platforms.  KeyboardInterrupt can now reliably be caught,