[issue32615] Inconsistent behavior if globals is a dict subclass

Paul Sokolovsky report at bugs.python.org
Fri Jan 17 05:27:10 EST 2020


Paul Sokolovsky <pfalcon at users.sourceforge.net> added the comment:

Absolutely should be able to optimize namespace access. The fact that namespace is a dict is an implementation detail, it's still inefficient even with all those version counters and inline caches. Ironically, to let people prototype better, more efficient ways to deal with namespace access, it should be possible to override an object used as a namespace. Thanks for making that much more complicated.

----------

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


More information about the Python-bugs-list mailing list