[issue3462] test_builtin fails after test_decimal
Antoine Pitrou
report at bugs.python.org
Tue Jul 29 17:59:34 CEST 2008
Antoine Pitrou <pitrou at free.fr> 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 <report at bugs.python.org>
<http://bugs.python.org/issue3462>
_______________________________________
More information about the Python-bugs-list
mailing list