_PyImport_FindExtensionObject() does not set _Py_PackageContext
Hi, I noticed that _PyImport_FindExtensionObject() in Python/import.c does not set _Py_PackageContext when it calls the module init function for module reinitialisation. However, PyModule_Create2() still uses that variable to figure out the fully qualified module name. Was this intentionally left out or is it just an oversight? Stefan
Stefan Behnel, 13.11.2011 19:48:
I noticed that _PyImport_FindExtensionObject() in Python/import.c does not set _Py_PackageContext when it calls the module init function for module reinitialisation. However, PyModule_Create2() still uses that variable to figure out the fully qualified module name. Was this intentionally left out or is it just an oversight?
Assuming it was an oversight, I attached a patch to ticket 13429 on the bug tracker. http://bugs.python.org/issue13429 Stefan
participants (1)
-
Stefan Behnel