[issue25564] Document that IDLE -python difference for `del __builtins__`

Terry J. Reedy report at bugs.python.org
Wed Aug 24 17:04:51 EDT 2016


Terry J. Reedy added the comment:

Steven: "You should use `__builtin__` in Python 2 and `builtins` in Python 3."  I presume this is for import statements.

ppperry: Titles should fit in the box, so they fit in search listing results.

I am thinking of something like "Since Python inserts '__builtins__' into the exec global namespace when not present and IDLE uses exec, '__builtins__' is defined at the start of each statement or file even when it otherwise would not be."

----------
title: Document that IDLE behaves differently than python on `del __builtins__` -> Document that IDLE -python difference for `del __builtins__`
versions:  -Python 3.4

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


More information about the Python-bugs-list mailing list