Message70404
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 |
|
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 | |
|