[issue27867] various issues due to misuse of PySlice_GetIndicesEx

Serhiy Storchaka report at bugs.python.org
Thu Dec 29 17:37:55 EST 2016


Serhiy Storchaka added the comment:

Renamed _PySlice_EvalIndices() to _PySlice_AdjustIndices() and changed its signature. Updated the documentation and python3.def. Fixed yet one bug: implementation-defined behavior with division by negative step.

Note that since new functions are used in public macro, they become a part of the stable API. Shouldn't starting underscores be removed from names?

An attempt of discussing names and signatures on Python-Dev: https://mail.python.org/pipermail/python-dev/2016-December/147048.html.

----------
Added file: http://bugs.python.org/file46085/slice_get_indices_2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27867>
_______________________________________


More information about the Python-bugs-list mailing list