[issue25564] IDLE behaves differently that the standard interpreter when someone types `del __builtins__`

ppperry report at bugs.python.org
Thu Nov 5 18:31:20 EST 2015


ppperry added the comment:

`del __builtins__;min` only fails in IDLE if someone has previously set `__builtins__ to something else.
>>>__builtins__ = 7
>>> min
Traceback (most recent call last):
  File "<pyshell#352>", line 1, in <module>
    min
NameError: name 'min' is not defined
>>>del __builtins__;min
Traceback (most recent call last):
  File "<pyshell#353>", line 1, in <module>
    del __builtins__;min
NameError: name 'min' is not defined
>>del __builtins__;min
<built-in function min>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25564>
_______________________________________


More information about the Python-bugs-list mailing list