comparison Python/graminit.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 9eaa2caed1c3
children ad114620f8c2
comparison
equal deleted inserted replaced
6601:1e428f51ed4e 6602:4514a5ea3ec4