mirror of
https://github.com/python/cpython
synced 2026-09-29 11:30:29 +03:00
Issue #27243: Fix __aiter__ protocol
This commit is contained in:
parent
ebe95fdabb
commit
a6f6edbda8
13 changed files with 292 additions and 33 deletions
|
|
@ -54,6 +54,9 @@ typedef struct {
|
|||
PyAPI_DATA(PyTypeObject) PyCoro_Type;
|
||||
PyAPI_DATA(PyTypeObject) _PyCoroWrapper_Type;
|
||||
|
||||
PyAPI_DATA(PyTypeObject) _PyAIterWrapper_Type;
|
||||
PyObject *_PyAIterWrapper_New(PyObject *aiter);
|
||||
|
||||
#define PyCoro_CheckExact(op) (Py_TYPE(op) == &PyCoro_Type)
|
||||
PyObject *_PyCoro_GetAwaitableIter(PyObject *o);
|
||||
PyAPI_FUNC(PyObject *) PyCoro_New(struct _frame *,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue