Searched refs:tp_call (Results 1 – 15 of 15) sorted by relevance
/third_party/python/Doc/c-api/ |
D | call.rst | 9 *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 …]
|
D | typeobj.rst | 72 …| :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 */
|
D | exceptions.rst | 763 They are also not needed for *tp_call* implementations
|
/third_party/python/Doc/includes/ |
D | typestruct.h | 25 ternaryfunc tp_call; member
|
/third_party/python/Objects/ |
D | typeslots.inc | 51 {-1, offsetof(PyTypeObject, tp_call)},
|
D | call.c | 181 ternaryfunc call = Py_TYPE(callable)->tp_call; in _PyObject_MakeTpCall() 293 call = Py_TYPE(callable)->tp_call; in _PyObject_Call()
|
D | genericaliasobject.c | 645 .tp_call = ga_call,
|
D | object.c | 1479 return Py_TYPE(x)->tp_call != NULL; in PyCallable_Check()
|
D | typeobject.c | 5883 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/ |
D | object.h | 215 ternaryfunc tp_call; member
|
/third_party/python/Doc/extending/ |
D | newtypes.rst | 483 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.c | 1109 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.c | 74 if (Py_TYPE(func)->tp_call == (ternaryfunc)partial_call) { in partial_new()
|
D | _asynciomodule.c | 1883 .tp_call = (ternaryfunc)TaskStepMethWrapper_call,
|
/third_party/python/Misc/ |
D | HISTORY | 32606 pointers in the type object structure: tp_call defines how an object
|