mirror of
https://github.com/python/cpython.git
synced 2026-10-28 18:35:21 +08:00
A single-phase init function that creates its module using only the last component of a dotted name (as pybind11 does for submodules) got a module whose __name__ was the short name. Set the package context while calling the init function, as the dynamic loader does, so the module gets the full name from the spec.
Source files for binary executables (as opposed to shared modules)