Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 6602:4514a5ea3ec4 legacy-trunk
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).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 19 Nov 1997 18:53:33 +0000 |
| parents | 3b2fda31bf1b |
| children | 93e480dedcf0 |
