109
110
throw std::runtime_error("expected slice");
110
111
Py_ssize_t stop, start, step, index_size;
112
if ( PySlice_GetIndicesEx((PySliceObject*)op, vector_size, &start, &stop, &step, &index_size) < 0 )
113
if (PySlice_GetIndicesEx((PySliceObject*)op, vector_size, &start, &stop, &step, &index_size) < 0)
113
114
throw std::runtime_error("invalid slice");