Lines Matching refs:callable
14 Instances of classes that set :c:member:`~PyTypeObject.tp_call` are callable.
17 PyObject *tp_call(PyObject *callable, PyObject *args, PyObject *kwargs);
21 ``callable(*args, **kwargs)`` in Python code.
44 if the callable supports it. However, this is not a hard rule.
49 Moreover, the callable must behave the same
71 .. c:type:: PyObject *(*vectorcallfunc)(PyObject *callable, PyObject *const *args, size_t nargsf, P…
73 - *callable* is the object being called.
103 function as with any other callable.
165 .. c:function:: PyObject* PyVectorcall_Call(PyObject *callable, PyObject *tuple, PyObject *dict)
167 Call *callable*'s :c:type:`vectorcallfunc` with positional and keyword
195 | Function | callable | args | kwargs |
225 .. c:function:: PyObject* PyObject_Call(PyObject *callable, PyObject *args, PyObject *kwargs)
227 Call a callable Python object *callable*, with arguments given by the
237 ``callable(*args, **kwargs)``.
240 .. c:function:: PyObject* PyObject_CallNoArgs(PyObject *callable)
242 Call a callable Python object *callable* without any arguments. It is the
243 most efficient way to call a callable Python object without any argument.
251 .. c:function:: PyObject* PyObject_CallOneArg(PyObject *callable, PyObject *arg)
253 Call a callable Python object *callable* with exactly 1 positional argument
264 .. c:function:: PyObject* PyObject_CallObject(PyObject *callable, PyObject *args)
266 Call a callable Python object *callable*, with arguments given by the
272 This is the equivalent of the Python expression: ``callable(*args)``.
275 .. c:function:: PyObject* PyObject_CallFunction(PyObject *callable, const char *format, ...)
277 Call a callable Python object *callable*, with a variable number of C arguments.
284 This is the equivalent of the Python expression: ``callable(*args)``.
314 .. c:function:: PyObject* PyObject_CallFunctionObjArgs(PyObject *callable, ...)
316 Call a callable Python object *callable*, with a variable number of
324 ``callable(arg1, arg2, ...)``.
365 .. c:function:: PyObject* PyObject_Vectorcall(PyObject *callable, PyObject *const *args, size_t nar…
367 Call a callable Python object *callable*.
369 If *callable* supports vectorcall_, this directly calls
370 the vectorcall function stored in *callable*.
379 .. c:function:: PyObject* PyObject_VectorcallDict(PyObject *callable, PyObject *const *args, size_t…
381 Call *callable* with positional arguments passed exactly as in the vectorcall_ protocol,
423 Determine if the object *o* is callable. Return ``1`` if the object is callable