Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The fix is actually simple: _PyImport_FindExtension() used to return a borrowed reference, the "strong" reference being stored in the PyImport_GetModuleDict() dictionary. All paths should behave the same.
See attached patch. (for unit tests, run for example regrtest.py -R:: test_site ) ---------- keywords: +needs review, patch Added file: http://bugs.python.org/file11289/import-leak.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3667> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com