mirror of
https://github.com/python/cpython
synced 2026-09-29 09:55:31 +03:00
bpo-41756: Export PyGen_Send and wrap it in if-defs (#22677)
This commit is contained in:
parent
66c28f50c7
commit
cfb0f57ff8
3 changed files with 7 additions and 0 deletions
|
|
@ -338,6 +338,7 @@ PyAPI_FUNC(int) PyIter_Check(PyObject *);
|
|||
NULL with an exception means an error occurred. */
|
||||
PyAPI_FUNC(PyObject *) PyIter_Next(PyObject *);
|
||||
|
||||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000
|
||||
typedef enum {
|
||||
PYGEN_RETURN = 0,
|
||||
PYGEN_ERROR = -1,
|
||||
|
|
@ -353,6 +354,7 @@ typedef enum {
|
|||
- PYGEN_NEXT (1) if generator has yielded.
|
||||
'result' parameter is filled with yielded value. */
|
||||
PyAPI_FUNC(PySendResult) PyIter_Send(PyObject *, PyObject *, PyObject **);
|
||||
#endif
|
||||
|
||||
|
||||
/* === Number Protocol ================================================== */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue