[Python-Dev] _PyImport_FindExtensionObject() does not set _Py_PackageContext (original) (raw)
Stefan Behnel stefan_ml at behnel.de
Fri Nov 18 17:27:58 CET 2011
- Previous message: [Python-Dev] _PyImport_FindExtensionObject() does not set _Py_PackageContext
- Next message: [Python-Dev] how to find the file path to an extension module at init time?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Stefan Behnel, 13.11.2011 19:48:
I noticed that PyImportFindExtensionObject() in Python/import.c does not set PyPackageContext when it calls the module init function for module reinitialisation. However, PyModuleCreate2() 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
- Previous message: [Python-Dev] _PyImport_FindExtensionObject() does not set _Py_PackageContext
- Next message: [Python-Dev] how to find the file path to an extension module at init time?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]