[Python-checkins] CVS: python/dist/src/Include abstract.h,2.31,2.32

Tim Peters tim_one@users.sourceforge.net
Fri, 04 May 2001 17:14:58 -0700


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

Modified Files:
	abstract.h 
Log Message:
Make PyIter_Next() a little smarter (wrt its knowledge of iterator
internals) so clients can be a lot dumber (wrt their knowledge).


Index: abstract.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/abstract.h,v
retrieving revision 2.31
retrieving revision 2.32
diff -C2 -r2.31 -r2.32
*** abstract.h	2001/04/23 14:08:49	2.31
--- abstract.h	2001/05/05 00:14:56	2.32
***************
*** 485,491 ****
       /* Takes an iterator object and calls its tp_iternext slot,
  	returning the next value.  If the iterator is exhausted,
! 	this can return NULL without setting an exception, *or*
! 	NULL with a StopIteration exception.
! 	NULL with any other exception  means an error occurred. */
  
  /*  Number Protocol:*/
--- 485,490 ----
       /* Takes an iterator object and calls its tp_iternext slot,
  	returning the next value.  If the iterator is exhausted,
! 	this returns NULL without setting an exception.
! 	NULL with an exception means an error occurred. */
  
  /*  Number Protocol:*/