Teks sumber — English
Terjemahan — Bahasa Indonesia
Various functions are available for calling a Python object. Each converts its arguments to a convention supported by the called object – either *tp_call* or vectorcall. In order to do as little conversion as possible, pick one that best fits the format of data you have available.
format
format
Call a callable Python object *callable*, with a variable number of C arguments. The C arguments are described using a :c:func:`Py_BuildValue` style format string. The format can be *NULL*, indicating that no arguments are provided.
The type of *format* was changed from ``char *``.
Call the method named *name* of object *obj* with a variable number of C arguments. The C arguments are described by a :c:func:`Py_BuildValue` format string that should produce a tuple.
The format can be *NULL*, indicating that no arguments are provided.
The types of *name* and *format* were changed from ``char *``.