We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc54c8 commit 8d93533Copy full SHA for 8d93533
Doc/c-api/iter.rst
@@ -27,7 +27,8 @@ There are two functions specifically for working with iterators.
27
caller to check this).
28
If there are no remaining values, set ``*item`` to ``NULL``.
29
30
- Return 0 on success and -1 on error.
+ Return 1 if an item was returned from the iterator, 0 if the iterator
31
+ is exhausted, and -1 on error.
32
33
To write a loop which iterates over an iterator, the C code should look
34
something like this::
0 commit comments