From 1f8cc33f884e5d6f5d4f0724ce8b03a4044da5e9 Mon Sep 17 00:00:00 2001
From: Terry Jan Reedy
Date: Thu, 25 Aug 2016 01:22:30 -0400
Subject: [PATCH] Issue #25564: Mention exec and __builtins__ in IDLE-console
difference section.
---
Doc/library/idle.rst | 6 ++++--
Lib/idlelib/help.html | 43 +++++++++++++++++++++----------------------
2 files changed, 25 insertions(+), 24 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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html
index 6f739c42ab..1357289fff 100644
--- a/Lib/idlelib/help.html
+++ b/Lib/idlelib/help.html
@@ -6,7 +6,7 @@
- 25.5. IDLE — Python 3.5.1 documentation
+ 25.5. IDLE — Python 3.5.2 documentation
@@ -14,7 +14,7 @@
-
+
@@ -58,13 +58,13 @@
accesskey="P">previous |
-
idle.py [-c command] [-d] [-e] [-h] [-i] [-r file] [-s] [-t title] [-] [arg] ...
-c command run command in the shell window
-d enable debugger and open shell window
@@ -526,10 +526,12 @@ 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.