mirror of
https://github.com/python/cpython.git
synced 2025-12-11 03:20:01 +00:00
Return -1 and set an exception on error; return 0 if the iterator is exhausted, and return 1 if the next item was fetched successfully. Prefer this API to PyIter_Next(), which requires the caller to use PyErr_Occurred() to differentiate between iterator exhaustion and errors. Co-authered-by: Irit Katriel <iritkatriel@yahoo.com> |
||
|---|---|---|
| .. | ||
| refcounts.dat | ||
| stable_abi.dat | ||