[docs] [issue13783] Clean up PEP 380 C API additions

Meador Inge report at bugs.python.org
Sun Jan 22 05:09:32 CET 2012

Meador Inge <meadori at gmail.com> added the comment:

'PyStopIteration_Create' is just a trivial wrapper:

PyObject *
PyStopIteration_Create(PyObject *value)
    return PyObject_CallFunctionObjArgs(PyExc_StopIteration, value, NULL);

It is not needed.

As for 'PyGen_FetchStopIterationValue', does it really need to be public?  It is trivial to make it private because all calls to it are in 'genobject.c'.  However, I am not sure if there is a strong use case for having it public.

nosy: +meador.inge
stage:  -> needs patch
type:  -> enhancement

Python tracker <report at bugs.python.org>

More information about the docs mailing list