File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ something like this::
5050
5151 The enum value used to represent different results of :c:func: `PyIter_Send `.
5252
53+ .. versionadded :: 3.10
54+
5355
5456.. c :function :: PySendResult PyIter_Send (PyObject *iter, PyObject *arg, PyObject **presult)
5557
@@ -58,3 +60,5 @@ something like this::
5860 - ``PYGEN_RETURN `` if iterator returns. Return value is returned via *presult *.
5961 - ``PYGEN_NEXT `` if iterator yields. Yielded value is returned via *presult *.
6062 - ``PYGEN_ERROR `` if iterator has raised and exception. *presult * is set to ``NULL ``.
63+
64+ .. versionadded :: 3.10
Original file line number Diff line number Diff line change @@ -338,6 +338,7 @@ PyAPI_FUNC(int) PyIter_Check(PyObject *);
338338 NULL with an exception means an error occurred. */
339339PyAPI_FUNC (PyObject * ) PyIter_Next (PyObject * );
340340
341+ #if !defined(Py_LIMITED_API ) || Py_LIMITED_API + 0 >= 0x030A0000
341342typedef enum {
342343 PYGEN_RETURN = 0 ,
343344 PYGEN_ERROR = -1 ,
@@ -353,6 +354,7 @@ typedef enum {
353354 - PYGEN_NEXT (1) if generator has yielded.
354355 'result' parameter is filled with yielded value. */
355356PyAPI_FUNC (PySendResult ) PyIter_Send (PyObject * , PyObject * , PyObject * * );
357+ #endif
356358
357359
358360/* === Number Protocol ================================================== */
Original file line number Diff line number Diff line change @@ -287,6 +287,7 @@ EXPORT_FUNC(PyInterpreterState_GetID)
287287EXPORT_FUNC (PyInterpreterState_New )
288288EXPORT_FUNC (PyIter_Check )
289289EXPORT_FUNC (PyIter_Next )
290+ EXPORT_FUNC (PyIter_Send )
290291EXPORT_FUNC (PyList_Append )
291292EXPORT_FUNC (PyList_AsTuple )
292293EXPORT_FUNC (PyList_GetItem )
You can’t perform that action at this time.
0 commit comments