aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-05-05 00:14:56 +0000
committerTim Peters <tim.peters@gmail.com>2001-05-05 00:14:56 +0000
commitf4848dac41689d1f2f8bd224bd935beae9b8df86 (patch)
treec4b33c842f923add9fde5d8e4a4619ab6b0c316b /Include/abstract.h
parentMake the license GPL-compatible. (diff)
downloadcpython-f4848dac41689d1f2f8bd224bd935beae9b8df86.tar.gz
cpython-f4848dac41689d1f2f8bd224bd935beae9b8df86.tar.bz2
cpython-f4848dac41689d1f2f8bd224bd935beae9b8df86.zip
Make PyIter_Next() a little smarter (wrt its knowledge of iterator
internals) so clients can be a lot dumber (wrt their knowledge).
Diffstat (limited to 'Include/abstract.h')
-rw-r--r--Include/abstract.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 1dae5f14426..ac9e568ef0e 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -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:*/