You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d652323
Browse filesBrowse the repository at this point in the historyBrowse files
authored
[3.15] gh-157384: Document and test PyImport_CreateModuleFromInitfunc() semantics (GH-157389) (#159791)
gh-157384: Document and test PyImport_CreateModuleFromInitfunc() semantics (GH-157389)
Document that single-phase init modules are added to sys.modules by
the call itself (unlike multi-phase init modules), and that the spec
name identifies the module, so a later call with the same name and a
different init function reuses the cached module without calling the
new init function. Add regression tests for both behaviors.
(cherry picked from commit 0c4ca17)
Co-authored-by: Itamar Oren <itamarost@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
0 commit comments