Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/python3....
File: sliceobject.h
#ifndef Py_SLICEOBJECT_H
[0] Fix | Delete
#define Py_SLICEOBJECT_H
[1] Fix | Delete
#ifdef __cplusplus
[2] Fix | Delete
extern "C" {
[3] Fix | Delete
#endif
[4] Fix | Delete
[5] Fix | Delete
/* The unique ellipsis object "..." */
[6] Fix | Delete
[7] Fix | Delete
PyAPI_DATA(PyObject) _Py_EllipsisObject; /* Don't use this directly */
[8] Fix | Delete
[9] Fix | Delete
#define Py_Ellipsis (&_Py_EllipsisObject)
[10] Fix | Delete
[11] Fix | Delete
/* Slice object interface */
[12] Fix | Delete
[13] Fix | Delete
/*
[14] Fix | Delete
[15] Fix | Delete
A slice object containing start, stop, and step data members (the
[16] Fix | Delete
names are from range). After much talk with Guido, it was decided to
[17] Fix | Delete
let these be any arbitrary python type. Py_None stands for omitted values.
[18] Fix | Delete
*/
[19] Fix | Delete
#ifndef Py_LIMITED_API
[20] Fix | Delete
typedef struct {
[21] Fix | Delete
PyObject_HEAD
[22] Fix | Delete
PyObject *start, *stop, *step; /* not NULL */
[23] Fix | Delete
} PySliceObject;
[24] Fix | Delete
#endif
[25] Fix | Delete
[26] Fix | Delete
PyAPI_DATA(PyTypeObject) PySlice_Type;
[27] Fix | Delete
PyAPI_DATA(PyTypeObject) PyEllipsis_Type;
[28] Fix | Delete
[29] Fix | Delete
#define PySlice_Check(op) (Py_TYPE(op) == &PySlice_Type)
[30] Fix | Delete
[31] Fix | Delete
PyAPI_FUNC(PyObject *) PySlice_New(PyObject* start, PyObject* stop,
[32] Fix | Delete
PyObject* step);
[33] Fix | Delete
#ifndef Py_LIMITED_API
[34] Fix | Delete
PyAPI_FUNC(PyObject *) _PySlice_FromIndices(Py_ssize_t start, Py_ssize_t stop);
[35] Fix | Delete
PyAPI_FUNC(int) _PySlice_GetLongIndices(PySliceObject *self, PyObject *length,
[36] Fix | Delete
PyObject **start_ptr, PyObject **stop_ptr,
[37] Fix | Delete
PyObject **step_ptr);
[38] Fix | Delete
#endif
[39] Fix | Delete
PyAPI_FUNC(int) PySlice_GetIndices(PyObject *r, Py_ssize_t length,
[40] Fix | Delete
Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step);
[41] Fix | Delete
PyAPI_FUNC(int) PySlice_GetIndicesEx(PyObject *r, Py_ssize_t length,
[42] Fix | Delete
Py_ssize_t *start, Py_ssize_t *stop,
[43] Fix | Delete
Py_ssize_t *step, Py_ssize_t *slicelength);
[44] Fix | Delete
[45] Fix | Delete
#if !defined(Py_LIMITED_API) || (Py_LIMITED_API+0 >= 0x03050400 && Py_LIMITED_API+0 < 0x03060000) || Py_LIMITED_API+0 >= 0x03060100
[46] Fix | Delete
#ifdef Py_LIMITED_API
[47] Fix | Delete
#define PySlice_GetIndicesEx(slice, length, start, stop, step, slicelen) ( \
[48] Fix | Delete
PySlice_Unpack((slice), (start), (stop), (step)) < 0 ? \
[49] Fix | Delete
((*(slicelen) = 0), -1) : \
[50] Fix | Delete
((*(slicelen) = PySlice_AdjustIndices((length), (start), (stop), *(step))), \
[51] Fix | Delete
0))
[52] Fix | Delete
#endif
[53] Fix | Delete
PyAPI_FUNC(int) PySlice_Unpack(PyObject *slice,
[54] Fix | Delete
Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step);
[55] Fix | Delete
PyAPI_FUNC(Py_ssize_t) PySlice_AdjustIndices(Py_ssize_t length,
[56] Fix | Delete
Py_ssize_t *start, Py_ssize_t *stop,
[57] Fix | Delete
Py_ssize_t step);
[58] Fix | Delete
#endif
[59] Fix | Delete
[60] Fix | Delete
#ifdef __cplusplus
[61] Fix | Delete
}
[62] Fix | Delete
#endif
[63] Fix | Delete
#endif /* !Py_SLICEOBJECT_H */
[64] Fix | Delete
[65] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function