Home
last modified time | relevance | path

Searched refs:tp_call (Results 1 – 15 of 15) sorted by relevance

/third_party/python/Doc/c-api/
Dcall.rst9 *tp_call* and vectorcall.
11 The *tp_call* Protocol
14 Instances of classes that set :c:member:`~PyTypeObject.tp_call` are callable.
17 PyObject *tp_call(PyObject *callable, PyObject *args, PyObject *kwargs);
25 This convention is not only used by *tp_call*:
45 Additionally, some third-party extensions use *tp_call* directly
48 :c:member:`~PyTypeObject.tp_call`.
52 :c:member:`~PyTypeObject.tp_call` to :c:func:`PyVectorcall_Call`.
58 :c:member:`~PyTypeObject.tp_call` with the same semantics.
61 than *tp_call*. For example, if the callee needs to convert
[all …]
Dtypeobj.rst72 …| :c:member:`~PyTypeObject.tp_call` | :c:type:`ternaryfunc` | __call__ …
708 of the simpler :c:member:`~PyTypeObject.tp_call`.
716 falls back to :c:member:`~PyTypeObject.tp_call`.
719 :c:member:`~PyTypeObject.tp_call` and make sure its behaviour is consistent
721 This can be done by setting *tp_call* to :c:func:`PyVectorcall_Call`.
727 When a user sets :attr:`__call__` in Python code, only *tp_call* is updated,
904 .. c:member:: ternaryfunc PyTypeObject.tp_call
910 PyObject *tp_call(PyObject *self, PyObject *args, PyObject *kwargs);
1187 :c:member:`~PyTypeObject.tp_call` is also inherited.
2622 0, /* tp_call */
Dexceptions.rst763 They are also not needed for *tp_call* implementations
/third_party/python/Doc/includes/
Dtypestruct.h25 ternaryfunc tp_call; member
/third_party/python/Objects/
Dtypeslots.inc51 {-1, offsetof(PyTypeObject, tp_call)},
Dcall.c181 ternaryfunc call = Py_TYPE(callable)->tp_call; in _PyObject_MakeTpCall()
293 call = Py_TYPE(callable)->tp_call; in _PyObject_Call()
Dgenericaliasobject.c645 .tp_call = ga_call,
Dobject.c1479 return Py_TYPE(x)->tp_call != NULL; in PyCallable_Check()
Dtypeobject.c5883 if (!type->tp_call && in inherit_slots()
5889 COPYSLOT(tp_call); in inherit_slots()
5970 _PyObject_ASSERT((PyObject *)type, type->tp_call != NULL); in type_ready_checks()
7915 FLSLOT("__call__", tp_call, slot_tp_call, (wrapperfunc)(void(*)(void))wrap_call,
/third_party/python/Include/cpython/
Dobject.h215 ternaryfunc tp_call; member
/third_party/python/Doc/extending/
Dnewtypes.rst483 ternaryfunc tp_call;
487 contains ``obj1('hello')``, the :c:member:`~PyTypeObject.tp_call` handler is invoked.
503 Here is a toy ``tp_call`` implementation::
/third_party/python/Modules/
D_testcapimodule.c1109 ternaryfunc tp_call = PyType_GetSlot(&PyLong_Type, Py_tp_call); in test_get_statictype_slots() local
1110 if (tp_call != NULL) { in test_get_statictype_slots()
6518 .tp_call = PyVectorcall_Call,
6535 .tp_call = call_return_args,
6558 .tp_call = PyVectorcall_Call,
D_functoolsmodule.c74 if (Py_TYPE(func)->tp_call == (ternaryfunc)partial_call) { in partial_new()
D_asynciomodule.c1883 .tp_call = (ternaryfunc)TaskStepMethWrapper_call,
/third_party/python/Misc/
DHISTORY32606 pointers in the type object structure: tp_call defines how an object