| #ifndef Py_CPYTHON_ABSTRACTOBJECT_H |
| # error "this header file must not be included directly" |
| #endif |
|
|
| |
|
|
| |
| |
| PyAPI_FUNC(PyObject*) _PyObject_CallMethodId( |
| PyObject *obj, |
| _Py_Identifier *name, |
| const char *format, ...); |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| PyAPI_FUNC(PyObject*) _PyStack_AsDict(PyObject *const *values, PyObject *kwnames); |
|
|
|
|
| |
|
|
| |
| |
| |
| static inline Py_ssize_t |
| _PyVectorcall_NARGS(size_t n) |
| { |
| return n & ~PY_VECTORCALL_ARGUMENTS_OFFSET; |
| } |
| #define PyVectorcall_NARGS(n) _PyVectorcall_NARGS(n) |
|
|
| PyAPI_FUNC(vectorcallfunc) PyVectorcall_Function(PyObject *callable); |
|
|
| |
| |
| #define _PyObject_Vectorcall PyObject_Vectorcall |
| #define _PyObject_VectorcallMethod PyObject_VectorcallMethod |
| #define _PyObject_FastCallDict PyObject_VectorcallDict |
| #define _PyVectorcall_Function PyVectorcall_Function |
| #define _PyObject_CallOneArg PyObject_CallOneArg |
| #define _PyObject_CallMethodNoArgs PyObject_CallMethodNoArgs |
| #define _PyObject_CallMethodOneArg PyObject_CallMethodOneArg |
|
|
| |
| |
| PyAPI_FUNC(PyObject *) PyObject_VectorcallDict( |
| PyObject *callable, |
| PyObject *const *args, |
| size_t nargsf, |
| PyObject *kwargs); |
|
|
| PyAPI_FUNC(PyObject *) PyObject_CallOneArg(PyObject *func, PyObject *arg); |
|
|
| static inline PyObject * |
| PyObject_CallMethodNoArgs(PyObject *self, PyObject *name) |
| { |
| size_t nargsf = 1 | PY_VECTORCALL_ARGUMENTS_OFFSET; |
| return PyObject_VectorcallMethod(name, &self, nargsf, _Py_NULL); |
| } |
|
|
| static inline PyObject * |
| PyObject_CallMethodOneArg(PyObject *self, PyObject *name, PyObject *arg) |
| { |
| PyObject *args[2] = {self, arg}; |
| size_t nargsf = 2 | PY_VECTORCALL_ARGUMENTS_OFFSET; |
| assert(arg != NULL); |
| return PyObject_VectorcallMethod(name, args, nargsf, _Py_NULL); |
| } |
|
|
| |
| |
| |
| PyAPI_FUNC(Py_ssize_t) PyObject_LengthHint(PyObject *o, Py_ssize_t); |
|
|
| |
|
|
| |
| |
| #define PySequence_ITEM(o, i)\ |
| ( Py_TYPE(o)->tp_as_sequence->sq_item((o), (i)) ) |
|
|