Functions | |
Py_ssize_t | ExtractIndices (PyObject *indices, Py_ssize_t &from, Py_ssize_t &to, Py_ssize_t &step, Py_ssize_t length) |
Function which processes an index or slice object and sets from, to and step appropriately. More... | |
Py_ssize_t ExtractIndices | ( | PyObject * | indices, |
Py_ssize_t & | from, | ||
Py_ssize_t & | to, | ||
Py_ssize_t & | step, | ||
Py_ssize_t | length | ||
) |
Function which processes an index or slice object and sets from, to and step appropriately.
Returns the size of the described range, -1 if 'indices' is not a valid slice