• Home
  • Raw
  • Download

Lines Matching +full:python +full:- +full:format

12 ----------------------
21 ``callable(*args, **kwargs)`` in Python code.
22 *args* must be non-NULL (use an empty tuple if there are no arguments)
30 :ref:`call API <capi-call>`.
36 -----------------------
45 Additionally, some third-party extensions use *tp_call* directly
73 - *callable* is the object being called.
74 - *args* is a C array consisting of the positional arguments followed by the
77 - *nargsf* is the number of positional arguments plus possibly the
81 - *kwnames* is a tuple containing the names of the keyword arguments;
90 to temporarily change ``args[-1]``. In other words, *args* points to
92 The callee must restore the value of ``args[-1]`` before returning.
102 To call an object that implements vectorcall, use a :ref:`call API <capi-call>`
117 The old names are still defined as aliases of the new, non-underscored names.
174 .. _capi-call:
177 ------------------
179 Various functions are available for calling a Python object.
183 the format of data you have available.
188 +------------------------------------------+------------------+--------------------+---------------+
192 +------------------------------------------+------------------+--------------------+---------------+
193 | :c:func:`PyObject_CallNoArgs` | ``PyObject *`` | --- | --- |
194 +------------------------------------------+------------------+--------------------+---------------+
195 | :c:func:`PyObject_CallOneArg` | ``PyObject *`` | 1 object | --- |
196 +------------------------------------------+------------------+--------------------+---------------+
197 | :c:func:`PyObject_CallObject` | ``PyObject *`` | tuple/``NULL`` | --- |
198 +------------------------------------------+------------------+--------------------+---------------+
199 | :c:func:`PyObject_CallFunction` | ``PyObject *`` | format | --- |
200 +------------------------------------------+------------------+--------------------+---------------+
201 | :c:func:`PyObject_CallMethod` | obj + ``char*`` | format | --- |
202 +------------------------------------------+------------------+--------------------+---------------+
203 | :c:func:`PyObject_CallFunctionObjArgs` | ``PyObject *`` | variadic | --- |
204 +------------------------------------------+------------------+--------------------+---------------+
205 | :c:func:`PyObject_CallMethodObjArgs` | obj + name | variadic | --- |
206 +------------------------------------------+------------------+--------------------+---------------+
207 | :c:func:`PyObject_CallMethodNoArgs` | obj + name | --- | --- |
208 +------------------------------------------+------------------+--------------------+---------------+
209 | :c:func:`PyObject_CallMethodOneArg` | obj + name | 1 object | --- |
210 +------------------------------------------+------------------+--------------------+---------------+
212 +------------------------------------------+------------------+--------------------+---------------+
214 +------------------------------------------+------------------+--------------------+---------------+
216 +------------------------------------------+------------------+--------------------+---------------+
221 Call a callable Python object *callable*, with arguments given by the
230 This is the equivalent of the Python expression:
236 Call a callable Python object *callable* without any arguments. It is the
237 most efficient way to call a callable Python object without any argument.
247 Call a callable Python object *callable* with exactly 1 positional argument
258 Call a callable Python object *callable*, with arguments given by the
264 This is the equivalent of the Python expression: ``callable(*args)``.
267 .. c:function:: PyObject* PyObject_CallFunction(PyObject *callable, const char *format, ...)
269 Call a callable Python object *callable*, with a variable number of C arguments.
270 The C arguments are described using a :c:func:`Py_BuildValue` style format
271 string. The format can be *NULL*, indicating that no arguments are provided.
276 This is the equivalent of the Python expression: ``callable(*args)``.
282 The type of *format* was changed from ``char *``.
285 .. c:function:: PyObject* PyObject_CallMethod(PyObject *obj, const char *name, const char *format, …
288 arguments. The C arguments are described by a :c:func:`Py_BuildValue` format
291 The format can be *NULL*, indicating that no arguments are provided.
296 This is the equivalent of the Python expression:
303 The types of *name* and *format* were changed from ``char *``.
308 Call a callable Python object *callable*, with a variable number of
315 This is the equivalent of the Python expression:
321 Call a method of the Python object *obj*, where the name of the method is given as a
322 Python string object in *name*. It is called with a variable number of
332 Call a method of the Python object *obj* without arguments,
333 where the name of the method is given as a Python string object in *name*.
343 Call a method of the Python object *obj* with a single positional argument
344 *arg*, where the name of the method is given as a Python string object in
355 Call a callable Python object *callable*.
382 is given as a Python string *name*. The object whose method is called is
401 ----------------