mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Make PyIter_Next() a little smarter (wrt its knowledge of iterator
internals) so clients can be a lot dumber (wrt their knowledge).
This commit is contained in:
parent
648b4de3d3
commit
f4848dac41
4 changed files with 35 additions and 66 deletions
|
@ -484,9 +484,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
|
|||
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:*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue