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 amaury.forgeotdarc, brett.cannon, chris.jerdonek, eric.snow, georg.brandl, jeffknupp, ncoghlan, r.david.murray
Date 2012-08-24.21:44:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345844697.15.0.749589022199.issue15316@psf.upfronthosting.co.za>
In-reply-to
Content
I am running the test suite now using the "secret" attribute on ImportError. I tried to pass a flag, but locking became a bit messy/complicated. And I also realized that if I didn't do this then using different implementation of import_ in importlib wouldn't work because I would be hard-coding in what import implementation was used which would bypass the accelerated code in import.c. Plus with the compatibility issues I have had in the passed, I didn't want to skip a step of import that someone was probably relying on.

Once Python 3.4 comes out I will create a new exception that is raised when no module is found and catch that class specifically to avoid this hack.
History
Date User Action Args
2012-08-24 21:44:57brett.cannonsetrecipients: + brett.cannon, georg.brandl, amaury.forgeotdarc, ncoghlan, r.david.murray, chris.jerdonek, eric.snow, jeffknupp
2012-08-24 21:44:57brett.cannonsetmessageid: <1345844697.15.0.749589022199.issue15316@psf.upfronthosting.co.za>
2012-08-24 21:44:56brett.cannonlinkissue15316 messages
2012-08-24 21:44:56brett.cannoncreate