Home
last modified time | relevance | path

Searched refs:tp_as_async (Results 1 – 14 of 14) sorted by relevance

/external/python/cpython3/Objects/
Dtypeslots.inc78 {offsetof(PyAsyncMethods, am_await), offsetof(PyTypeObject, tp_as_async)},
79 {offsetof(PyAsyncMethods, am_aiter), offsetof(PyTypeObject, tp_as_async)},
80 {offsetof(PyAsyncMethods, am_anext), offsetof(PyTypeObject, tp_as_async)},
82 {offsetof(PyAsyncMethods, am_send), offsetof(PyTypeObject, tp_as_async)},
Dabstract.c2831 if (t->tp_as_async == NULL || t->tp_as_async->am_aiter == NULL) { in PyObject_GetAIter()
2834 f = t->tp_as_async->am_aiter; in PyObject_GetAIter()
2858 return (tp->tp_as_async != NULL && in PyAIter_Check()
2859 tp->tp_as_async->am_anext != NULL && in PyAIter_Check()
2860 tp->tp_as_async->am_anext != &_PyObject_NextNotImplemented); in PyAIter_Check()
2892 if (Py_TYPE(iter)->tp_as_async && Py_TYPE(iter)->tp_as_async->am_send) { in PyIter_Send()
2893 PySendResult res = Py_TYPE(iter)->tp_as_async->am_send(iter, arg, result); in PyIter_Send()
Diterobject.c329 unaryfunc getter = Py_TYPE(awaitable)->tp_as_async->am_await; in anextawaitable_getiter()
Dtypeobject.c2754 type->tp_as_async = &et->as_async; in type_new_alloc()
3489 type->tp_as_async = &res->as_async; in PyType_FromModuleAndSpec()
5770 #define COPYASYNC(SLOT) COPYSLOT(tp_as_async->SLOT) in inherit_slots()
5820 if (type->tp_as_async != NULL && base->tp_as_async != NULL) { in inherit_slots()
5822 if (basebase->tp_as_async == NULL) in inherit_slots()
6152 if (type->tp_as_async == NULL) { in type_ready_inherit_as_structs()
6153 type->tp_as_async = base->tp_as_async; in type_ready_inherit_as_structs()
8123 ptr = (char *)type->tp_as_async; in slotptr()
Dgenobject.c914 if (ot->tp_as_async != NULL) { in _PyCoro_GetAwaitableIter()
915 getter = ot->tp_as_async->am_await; in _PyCoro_GetAwaitableIter()
/external/python/cpython3/Doc/includes/
Dtypestruct.h12 PyAsyncMethods *tp_as_async; /* formerly known as tp_compare (Python 2) member
/external/python/cpython3/Include/cpython/
Dobject.h202 PyAsyncMethods *tp_as_async; /* formerly known as tp_compare (Python 2) member
/external/python/cpython3/Python/
Dceval.c2451 if (type->tp_as_async != NULL) { in _PyEval_EvalFrameDefault()
2452 getter = type->tp_as_async->am_aiter; in _PyEval_EvalFrameDefault()
2473 if (Py_TYPE(iter)->tp_as_async == NULL || in _PyEval_EvalFrameDefault()
2474 Py_TYPE(iter)->tp_as_async->am_anext == NULL) { in _PyEval_EvalFrameDefault()
2497 awaitable = type->tp_as_async->am_anext(aiter); in _PyEval_EvalFrameDefault()
2502 if (type->tp_as_async != NULL){ in _PyEval_EvalFrameDefault()
2503 getter = type->tp_as_async->am_anext; in _PyEval_EvalFrameDefault()
6300 if (type->tp_as_async == NULL || type->tp_as_async->am_await == NULL) { in format_awaitable_error()
Dbltinmodule.c1637 if (t->tp_as_async == NULL || t->tp_as_async->am_anext == NULL) { in builtin_anext_impl()
1644 awaitable = (*t->tp_as_async->am_anext)(aiterator); in builtin_anext_impl()
/external/python/cpython3/Modules/
D_asynciomodule.c1530 .tp_as_async = &FutureType_as_async,
1758 .tp_as_async = &FutureIterType_as_async,
2480 .tp_as_async = &FutureType_as_async,
/external/python/pybind11/include/pybind11/detail/
Dclass.h670 type->tp_as_async = &heap_type->as_async; in make_new_python_type()
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst60 …| :c:member:`~PyTypeObject.tp_as_async` | :c:type:`PyAsyncMethods` * | :ref:`sub-s…
787 .. c:member:: PyAsyncMethods* PyTypeObject.tp_as_async
798 The :c:member:`~PyTypeObject.tp_as_async` field is not inherited,
2617 0, /* tp_as_async */
/external/python/cpython3/Doc/whatsnew/
D3.5.rst2536 :c:member:`tp_as_async` slot. Refer to :ref:`coro-objects` for
/external/python/cpython3/Doc/data/
Dpython3.10.abi2538 …<var-decl name='tp_as_async' type-id='type-id-41' visibility='default' filepath='./Include/cpython…