Fix importing of shared libraries from inside packages.
This is a bit of a hack: when the shared library is loaded, the module name is "package.module", but the module calls Py_InitModule*() with just "module" for the name. The shared library loader squirrels away the true name of the module in _Py_PackageContext, and Py_InitModule*() will substitute this (if the name actually matches).
G
Guido van Rossum committed
2e58ff3ef56c3bf0a7080743ec77e95ca1758b97
Parent: ee6fd1c