[issue42185] class body bytecode uses less efficient *_NAME opcodes
Brandt Bucher
report at bugs.python.org
Wed Oct 28 16:35:09 EDT 2020
Brandt Bucher <brandtbucher at gmail.com> added the comment:
In any case, I think the proposed change could break the current behavior:
>>> x = "global"
>>> class C:
... x = "local"
... l = x
... del x
... g = x
...
>>> C.l
'local'
>>> C.g
'global'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42185>
_______________________________________
More information about the Python-bugs-list
mailing list