This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients Arfrever, brett.cannon, eric.snow, georg.brandl, meador.inge, scoder
Date 2012-08-14.16:29:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344961797.57.0.566410267439.issue15623@psf.upfronthosting.co.za>
In-reply-to
Content
I had a minute free so I just tried inserting an empty module into sys.modules and then importing an extension module to see if it would get reused. It doesn't. imp.load_dynamic() actually just blindly overwrites what is in sys.modules. I'm willing to bet it just assumes whatever is in the special extensions module cache is the canonical module and just re-inserts blindly into sys.modules.

So that leaves needing to diagnose where Python 3.3 inserts an extension into sys.modules and if it can somehow be moved up. Probably should also see how the heck 3.2 is doing it to know where the difference occurs to make sure that it isn't some silly oversight somehow.
History
Date User Action Args
2012-08-14 16:29:57brett.cannonsetrecipients: + brett.cannon, georg.brandl, scoder, Arfrever, meador.inge, eric.snow
2012-08-14 16:29:57brett.cannonsetmessageid: <1344961797.57.0.566410267439.issue15623@psf.upfronthosting.co.za>
2012-08-14 16:29:57brett.cannonlinkissue15623 messages
2012-08-14 16:29:56brett.cannoncreate