[New-bugs-announce] [issue39223] Fold constant slicing with slices
Batuhan
report at bugs.python.org
Sun Jan 5 10:51:54 EST 2020
New submission from Batuhan <batuhanosmantaskaya at gmail.com>:
>>> def g(): "abcde"[2:4]
...
>>> g.__code__.co_consts
(None, 'abcde', 2, 4)
to
>>> def g(): "abcde"[2:4]
...
>>> g.__code__.co_consts
(None, 'cd')
(I have a patch)
----------
components: Interpreter Core
messages: 359350
nosy: BTaskaya
priority: normal
severity: normal
status: open
title: Fold constant slicing with slices
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39223>
_______________________________________
More information about the New-bugs-announce
mailing list