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

ppperry report at bugs.python.org
Thu Nov 5 18:26:04 EST 2015


New submission from ppperry:

In IDLE the following code silently works:
>>> del __builtins__
>>> min
<built-in function min>

In the standard interpreter, it produces an error:
>>> del __builtins__
>>> min
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'min' is not defined

Note that saying `__builtins__ = 7` fails in idle as well.

----------
components: IDLE, Interpreter Core
messages: 254149
nosy: ppperry
priority: normal
severity: normal
status: open
title: IDLE behaves differently that the standard interpreter when someone types `del __builtins__`

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


More information about the New-bugs-announce mailing list