STINNER Victor <[email protected]> added the comment:
> Before _weakref is converted to multiphase initialization:
> (...)
> => same module
That's because modules which don't use the multiphase initialization are cached
in _PyImport_FixupExtensionObject(): see msg364914 for details. Next calls to
_imp.create_builtin("_weakref") simply returned the cached _weakref module.
It's loaded exactly once.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40050>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com