Spaces:
Runtime error
Runtime error
| typedef struct { | |
| PyObject_VAR_HEAD | |
| /* ob_item contains space for 'ob_size' elements. | |
| Items must normally not be NULL, except during construction when | |
| the tuple is not yet visible outside the function that builds it. */ | |
| PyObject *ob_item[1]; | |
| } PyTupleObject; | |
| PyAPI_FUNC(int) _PyTuple_Resize(PyObject **, Py_ssize_t); | |
| PyAPI_FUNC(void) _PyTuple_MaybeUntrack(PyObject *); | |
| /* Cast argument to PyTupleObject* type. */ | |
| // Macros and static inline functions, trading safety for speed | |
| static inline Py_ssize_t PyTuple_GET_SIZE(PyObject *op) { | |
| PyTupleObject *tuple = _PyTuple_CAST(op); | |
| return Py_SIZE(tuple); | |
| } | |
| /* Function *only* to be used to fill in brand new tuples */ | |
| static inline void | |
| PyTuple_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | |
| PyTupleObject *tuple = _PyTuple_CAST(op); | |
| tuple->ob_item[index] = value; | |
| } | |
| PyAPI_FUNC(void) _PyTuple_DebugMallocStats(FILE *out); | |