mirror of
https://github.com/python/cpython
synced 2026-10-30 08:11:56 +03:00
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
|
||
|---|---|---|
| .. | ||
| _bootstrap_python.c | ||
| _freeze_module.c | ||
| _freeze_module.py | ||
| _testembed.c | ||
| freeze_test_frozenmain.py | ||
| python.c | ||
| README | ||
| test_frozenmain.h | ||
| test_frozenmain.py | ||
Source files for binary executables (as opposed to shared modules)