Mercurial > cpython-lru_cache-weakref
diff Include/abstract.h @ 17683:e9a4e27e8d4e legacy-trunk
Make PyIter_Next() a little smarter (wrt its knowledge of iterator
internals) so clients can be a lot dumber (wrt their knowledge).
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Sat, 05 May 2001 00:14:56 +0000 |
| parents | aac65f50df6f |
| children | 399d99601b2d |
line wrap: on
line diff
--- a/Include/abstract.h Fri May 04 18:49:06 2001 +0000 +++ b/Include/abstract.h Sat May 05 00:14:56 2001 +0000 @@ -484,9 +484,8 @@ DL_IMPORT(PyObject *) PyIter_Next(PyObject *); /* 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. */ + this returns NULL without setting an exception. + NULL with an exception means an error occurred. */ /* Number Protocol:*/
