[issue44749] LOAD_NAME not using PyObject_GetItem when globals() is a dict subclass

Douglas Raillard report at bugs.python.org
Thu Aug 5 05:01:32 EDT 2021


Douglas Raillard <douglas.raillard at arm.com> added the comment:

I ended up with a slightly different API that allows me to preemptively set some global names before the code runs in the module, so my use case sort of vanished. I don't think there is a real need of beating the dead horse here.

My only suggestion on the topic is that since the feature is not documented and is not really usable anyway, we might as well remove the slow path in LOAD_GLOBAL (unless there is a use case for having LOAD_GLOBAL and not LOAD_NAME I'm missing)

----------

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


More information about the Python-bugs-list mailing list