[issue27867] various issues due to misuse of PySlice_GetIndicesEx
Serhiy Storchaka
report at bugs.python.org
Fri Sep 9 04:04:22 EDT 2016
Serhiy Storchaka added the comment:
Then there is a design question. I believe that after all we should expose these two new functions publicly. And the question is about function names and the order of arguments. Currently signatures are:
int _PySlice_Unpack(PyObject *r, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step);
int _PySlice_EvalIndices(Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t step, Py_ssize_t length, Py_ssize_t *slicelength);
Are there suggestions for names? Perhaps the second functions should not have prefix PySlice_, since it doesn't work with slice object.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27867>
_______________________________________
More information about the Python-bugs-list
mailing list