[issue43545] Use LOAD_GLOBAL to set __module__ in class def
Dan Snider
report at bugs.python.org
Thu Mar 18 12:03:58 EDT 2021
New submission from Dan Snider <mr.assume.away at gmail.com>:
Other than obvious performance implications this has, usage of LOAD_NAME makes defining cls.__name__ from within metaclass.__prepare__ difficult.
----------
messages: 389026
nosy: bup
priority: normal
severity: normal
status: open
title: Use LOAD_GLOBAL to set __module__ in class def
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43545>
_______________________________________
More information about the Python-bugs-list
mailing list