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 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:34pitrousetrecipients: + pitrou, amaury.forgeotdarc, benjamin.peterson
2008-07-29 15:59:34pitrousetmessageid: <1217347174.01.0.827401557066.issue3462@psf.upfronthosting.co.za>
2008-07-29 15:59:33pitroulinkissue3462 messages
2008-07-29 15:59:32pitroucreate