Files
cpython/Python
Guido van Rossum a472771dad Backport revision 2.69.
SF patch #471839: Bug when extensions import extensions (Shane Hathaway)

    When an extension imports another extension in its
    initXXX() function, the variable _Py_PackageContext is
    prematurely reset to NULL. If the outer extension then
    calls Py_InitModule(), the extension is installed in
    sys.modules without its package name. The
    manifestation of this bug is a "SystemError:
    _PyImport_FixupExtension: module <package>.<extension>
    not loaded".

    To fix this, importdl.c just needs to retain the old
    value of _Py_PackageContext and restore it after the
    initXXX() method is called. The attached patch does this.

    This patch applies to Python 2.1.1 and the current CVS.
2002-01-15 21:14:38 +00:00
..
2000-05-02 18:34:30 +00:00
2001-05-23 12:46:45 +00:00
2001-11-21 06:21:18 +00:00
2001-11-21 04:58:37 +00:00
2001-11-21 05:41:03 +00:00
2001-04-14 17:55:09 +00:00
2001-06-27 13:11:09 +00:00
2001-07-11 12:03:44 +00:00
2002-01-15 21:14:38 +00:00
2001-12-21 03:46:12 +00:00
2001-12-21 03:45:15 +00:00
2001-11-21 03:51:20 +00:00
2000-10-06 15:48:38 +00:00
2001-12-21 03:49:31 +00:00