Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

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

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3462>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to