Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/python3....
File: tupleobject.h
[0] Fix | Delete
/* Tuple object interface */
[1] Fix | Delete
[2] Fix | Delete
#ifndef Py_TUPLEOBJECT_H
[3] Fix | Delete
#define Py_TUPLEOBJECT_H
[4] Fix | Delete
#ifdef __cplusplus
[5] Fix | Delete
extern "C" {
[6] Fix | Delete
#endif
[7] Fix | Delete
[8] Fix | Delete
/*
[9] Fix | Delete
Another generally useful object type is a tuple of object pointers.
[10] Fix | Delete
For Python, this is an immutable type. C code can change the tuple items
[11] Fix | Delete
(but not their number), and even use tuples are general-purpose arrays of
[12] Fix | Delete
object references, but in general only brand new tuples should be mutated,
[13] Fix | Delete
not ones that might already have been exposed to Python code.
[14] Fix | Delete
[15] Fix | Delete
*** WARNING *** PyTuple_SetItem does not increment the new item's reference
[16] Fix | Delete
count, but does decrement the reference count of the item it replaces,
[17] Fix | Delete
if not nil. It does *decrement* the reference count if it is *not*
[18] Fix | Delete
inserted in the tuple. Similarly, PyTuple_GetItem does not increment the
[19] Fix | Delete
returned item's reference count.
[20] Fix | Delete
*/
[21] Fix | Delete
[22] Fix | Delete
#ifndef Py_LIMITED_API
[23] Fix | Delete
typedef struct {
[24] Fix | Delete
PyObject_VAR_HEAD
[25] Fix | Delete
PyObject *ob_item[1];
[26] Fix | Delete
[27] Fix | Delete
/* ob_item contains space for 'ob_size' elements.
[28] Fix | Delete
* Items must normally not be NULL, except during construction when
[29] Fix | Delete
* the tuple is not yet visible outside the function that builds it.
[30] Fix | Delete
*/
[31] Fix | Delete
} PyTupleObject;
[32] Fix | Delete
#endif
[33] Fix | Delete
[34] Fix | Delete
PyAPI_DATA(PyTypeObject) PyTuple_Type;
[35] Fix | Delete
PyAPI_DATA(PyTypeObject) PyTupleIter_Type;
[36] Fix | Delete
[37] Fix | Delete
#define PyTuple_Check(op) \
[38] Fix | Delete
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TUPLE_SUBCLASS)
[39] Fix | Delete
#define PyTuple_CheckExact(op) (Py_TYPE(op) == &PyTuple_Type)
[40] Fix | Delete
[41] Fix | Delete
PyAPI_FUNC(PyObject *) PyTuple_New(Py_ssize_t size);
[42] Fix | Delete
PyAPI_FUNC(Py_ssize_t) PyTuple_Size(PyObject *);
[43] Fix | Delete
PyAPI_FUNC(PyObject *) PyTuple_GetItem(PyObject *, Py_ssize_t);
[44] Fix | Delete
PyAPI_FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
[45] Fix | Delete
PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
[46] Fix | Delete
#ifndef Py_LIMITED_API
[47] Fix | Delete
PyAPI_FUNC(int) _PyTuple_Resize(PyObject **, Py_ssize_t);
[48] Fix | Delete
#endif
[49] Fix | Delete
PyAPI_FUNC(PyObject *) PyTuple_Pack(Py_ssize_t, ...);
[50] Fix | Delete
#ifndef Py_LIMITED_API
[51] Fix | Delete
PyAPI_FUNC(void) _PyTuple_MaybeUntrack(PyObject *);
[52] Fix | Delete
#endif
[53] Fix | Delete
[54] Fix | Delete
/* Macro, trading safety for speed */
[55] Fix | Delete
#ifndef Py_LIMITED_API
[56] Fix | Delete
#define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i])
[57] Fix | Delete
#define PyTuple_GET_SIZE(op) Py_SIZE(op)
[58] Fix | Delete
[59] Fix | Delete
/* Macro, *only* to be used to fill in brand new tuples */
[60] Fix | Delete
#define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v)
[61] Fix | Delete
#endif
[62] Fix | Delete
[63] Fix | Delete
PyAPI_FUNC(int) PyTuple_ClearFreeList(void);
[64] Fix | Delete
#ifndef Py_LIMITED_API
[65] Fix | Delete
PyAPI_FUNC(void) _PyTuple_DebugMallocStats(FILE *out);
[66] Fix | Delete
#endif /* Py_LIMITED_API */
[67] Fix | Delete
[68] Fix | Delete
#ifdef __cplusplus
[69] Fix | Delete
}
[70] Fix | Delete
#endif
[71] Fix | Delete
#endif /* !Py_TUPLEOBJECT_H */
[72] Fix | Delete
[73] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function