deimos.python.sliceobject

Mirror sliceobject.h

Slice object interface

Members

Functions

PySlice_Check
int PySlice_Check(PyObject* op)

_

PySlice_GetIndices
int PySlice_GetIndices(PyObject* r, Py_ssize_t length, Py_ssize_t* start, Py_ssize_t* stop, Py_ssize_t* step)

_

PySlice_GetIndicesEx
int PySlice_GetIndicesEx(PyObject* r, Py_ssize_t length, Py_ssize_t* start, Py_ssize_t* stop, Py_ssize_t* step, Py_ssize_t* slicelength)

_

PySlice_New
PyObject* PySlice_New(PyObject* start, PyObject* stop, PyObject* step)

_

Properties

Py_Ellipsis
PyObject* Py_Ellipsis [@property getter]

The unique ellipsis object "..."

Structs

PySliceObject
struct PySliceObject

A slice object containing start, stop, and step data members (the names are from range). After much talk with Guido, it was decided to let these be any arbitrary python type. Py_None stands for omitted values.

Meta