This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients brett.cannon, eric.snow, ncoghlan, shihai1991, vstinner
Date 2020-03-24.13:59:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585058393.16.0.125233362294.issue40050@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
Date User Action Args
2020-03-24 13:59:53vstinnersetrecipients: + vstinner, brett.cannon, ncoghlan, eric.snow, shihai1991
2020-03-24 13:59:53vstinnersetmessageid: <1585058393.16.0.125233362294.issue40050@roundup.psfhosted.org>
2020-03-24 13:59:53vstinnerlinkissue40050 messages
2020-03-24 13:59:53vstinnercreate