[issue44643] importing does not dispatch to __builtins__.__getitem__ to lookup __import__

Steven D'Aprano report at bugs.python.org
Thu Jul 15 06:45:29 EDT 2021


Steven D'Aprano <steve+python at pearwood.info> added the comment:

On Thu, Jul 15, 2021 at 10:24:34AM +0000, Patrick Reader wrote:
> It may be, but in that case, why do LOAD_BUILD_CLASS and things still use it?

They're allowed to use CPython implementation details because they are 
part of the CPython implementation.

----------

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


More information about the Python-bugs-list mailing list