From: Terry Jan Reedy
Date: Thu, 25 Aug 2016 05:22:30 +0000 (-0400)
Subject: Issue #25564: Mention exec and __builtins__ in IDLE-console difference section.
X-Git-Tag: v3.6.0b1~549^2
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f8cc33f884e5d6f5d4f0724ce8b03a4044da5e9;p=thirdparty%2FPython%2Fcpython.git
Issue #25564: Mention exec and __builtins__ in IDLE-console difference section.
---
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst
index 4a8c257ea22f..0b8171d7816f 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 6f739c42ab3d..1357289fff6c 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.