Message70404
| Author |
pitrou |
| Recipients |
amaury.forgeotdarc, benjamin.peterson, pitrou |
| Date |
2008年07月29日.15:59:32 |
| SpamBayes Score |
0.031680502 |
| Marked as misclassified |
No |
| Message-id |
<1217347174.01.0.827401557066.issue3462@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Ok, I've found it:
« But why is __builtins__ a module in __main__ and a dict elsewhere?
Because in *interactive* mode, printing vars() would include
__builtins__, which would be rather large. Code that incorrectly
assumes it's always one or the other is incorrect and has always been
incorrect; the wart was present when this feature first appeared.
Since this has never been documented AFAIK, it's probably just been
(incorrectly) reverse-engineered and copied around. »
http://mail.python.org/pipermail/python-3000/2007-March/006170.html
:-S |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年07月29日 15:59:34 | pitrou | set | recipients:
+ pitrou, amaury.forgeotdarc, benjamin.peterson |
| 2008年07月29日 15:59:34 | pitrou | set | messageid: <1217347174.01.0.827401557066.issue3462@psf.upfronthosting.co.za> |
| 2008年07月29日 15:59:33 | pitrou | link | issue3462 messages |
| 2008年07月29日 15:59:32 | pitrou | create |
|