Lines Matching refs:PyExc_StopIteration
173 PyErr_SetNone(PyExc_StopIteration); in gen_send_ex()
235 PyErr_SetNone(PyExc_StopIteration); in gen_send_ex()
245 else if (!result && PyErr_ExceptionMatches(PyExc_StopIteration)) { in gen_send_ex()
377 if (PyErr_ExceptionMatches(PyExc_StopIteration) in gen_close()
564 PyErr_SetObject(PyExc_StopIteration, value); in _PyGen_SetStopIterationValue()
576 e = PyObject_CallOneArg(PyExc_StopIteration, value); in _PyGen_SetStopIterationValue()
580 PyErr_SetObject(PyExc_StopIteration, e); in _PyGen_SetStopIterationValue()
600 if (PyErr_ExceptionMatches(PyExc_StopIteration)) { in _PyGen_FetchStopIterationValue()
608 } else if (et == PyExc_StopIteration && !PyTuple_Check(ev)) { in _PyGen_FetchStopIterationValue()
621 if (!PyObject_TypeCheck(ev, (PyTypeObject *)PyExc_StopIteration)) { in _PyGen_FetchStopIterationValue()
1809 PyErr_SetNone(PyExc_StopIteration); in async_gen_athrow_send()
1919 PyErr_SetNone(PyExc_StopIteration); in async_gen_athrow_send()
1959 PyErr_SetNone(PyExc_StopIteration); in async_gen_athrow_throw()