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 eric.snow
Recipients brett.cannon, eric.snow
Date 2012-08-18.03:38:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345261089.07.0.0712105087978.issue15720@psf.upfronthosting.co.za>
In-reply-to
Content
When people want to import modules with "runtime" names, they regrettably turn to __import__(), have done so for many years, and likely will for a while.

If it were less convenient to use __import__(), fewer people would use it.  I'm putting together a patch that removes it from <module>.__builtins__, so that it will not be found during normal name lookup.  However, it will still available for the adventurous spirit via the imp module, following the precedent of reload().

This proposal came up in issue15715.
History
Date User Action Args
2012-08-18 03:38:09eric.snowsetrecipients: + eric.snow, brett.cannon
2012-08-18 03:38:09eric.snowsetmessageid: <1345261089.07.0.0712105087978.issue15720@psf.upfronthosting.co.za>
2012-08-18 03:38:08eric.snowlinkissue15720 messages
2012-08-18 03:38:07eric.snowcreate