[issue18813] Speed up slice object processing

Serhiy Storchaka report at bugs.python.org
Sun Nov 16 10:47:57 CET 2014


Serhiy Storchaka added the comment:

> There could be two implementations of "slice", one that
> uses Python object indices (as currently) and one that has Py_ssize_t
> indices  (and properties for the start/stop/step attributes).

Agree, this idea LGTM. Single boolean flag should be enough to switch between 
implementations. This shouldn't break well written code. The PySliceObject 
structure is not a part of stable API.

----------

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


More information about the Python-bugs-list mailing list