Message168493
| 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:09 | eric.snow | set | recipients:
+ eric.snow, brett.cannon |
| 2012年08月18日 03:38:09 | eric.snow | set | messageid: <1345261089.07.0.0712105087978.issue15720@psf.upfronthosting.co.za> |
| 2012年08月18日 03:38:08 | eric.snow | link | issue15720 messages |
| 2012年08月18日 03:38:07 | eric.snow | create |
|