[issue42454] Move slice creation to the compiler for constants
Batuhan Taskaya
report at bugs.python.org
Tue Nov 24 13:46:11 EST 2020
Batuhan Taskaya <isidentical at gmail.com> added the comment:
As a side effect, we also now fold some esoteric cases which are not very common. Like;
"""
test
"""[1:-1]
We reviewed only optimizing this a while back and decided these are not that common to add a code path. Just wanted to mention that now we optimize these away without any extra additions / maintenance cost.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42454>
_______________________________________
More information about the Python-bugs-list
mailing list