[issue11107] Cache constant "slice" instances

Serhiy Storchaka report at bugs.python.org
Tue May 7 05:20:11 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

To support slice constants we need to change the marshal format and introduce new version (current version is 4 and it was stable for several releases). If my memory do not betray me we already discussed this on other issue and the conclusion was that the benefit of this is too small for such large change.

But if we will need to add new marshal version for other reasons, supporting slices will be a nice addition. We just do not have enough reasons for this now.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue11107>
_______________________________________


More information about the Python-bugs-list mailing list