mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Remove traces of Py_InitModule*.
This commit is contained in:
parent
aa672ebe49
commit
574b1279d9
2 changed files with 16 additions and 4 deletions
|
|
@ -91,9 +91,9 @@ PyModule_Create2(struct PyModuleDef* module, int module_api_version)
|
|||
|
||||
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
|
||||
PyModule_Create*() 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
|
||||
_Py_PackageContext, and PyModule_Create*() will substitute this
|
||||
(if the name actually matches).
|
||||
*/
|
||||
if (_Py_PackageContext != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue