summaryrefslogtreecommitdiff
path: root/Doc/library/idle.rst
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-08-25 01:22:30 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2016-08-25 01:22:30 -0400
commit51fee4c4fa1a2dd7726477a33daf7bb1a6a51d76 (patch)
treec5b89db7eecb6c84aae891a76bf404f782973c42 /Doc/library/idle.rst
parent4a9e04b95433b9cdff9e92f3e3b38b8b5347ba42 (diff)
downloadcpython-51fee4c4fa1a2dd7726477a33daf7bb1a6a51d76.tar.gz
Issue #25564: Mention exec and __builtins__ in IDLE-console difference section.
Diffstat (limited to 'Doc/library/idle.rst')
-rw-r--r--Doc/library/idle.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst
index 4a8c257ea2..0b8171d781 100644
--- a/Doc/library/idle.rst
+++ b/Doc/library/idle.rst
@@ -562,11 +562,13 @@ objects that get input from and send output to the Shell window.
When this window has the focus, it controls the keyboard and screen.
This is normally transparent, but functions that directly access the keyboard
and screen will not work. If ``sys`` is reset with ``importlib.reload(sys)``,
-IDLE's changes are lost and things li ke ``input``, ``raw_input``, and
+IDLE's changes are lost and things like ``input``, ``raw_input``, and
``print`` will not work correctly.
With IDLE's Shell, one enters, edits, and recalls complete statements.
-Some consoles only work with a single physical line at a time.
+Some consoles only work with a single physical line at a time. IDLE uses
+``exec`` to run each statement. As a result, ``'__builtins__'`` is always
+defined for each statement.
Running without a subprocess
^^^^^^^^^^^^^^^^^^^^^^^^^^^^