changeset: 102907:641852513b8e
branch: 3.5
parent: 102895:37335860e0f7
user: Terry Jan Reedy
date: Thu Aug 25 01:22:30 2016 -0400
files: Doc/library/idle.rst Lib/idlelib/help.html
description:
Issue #25564: Mention exec and __builtins__ in IDLE-console difference section.
diff -r 37335860e0f7 -r 641852513b8e Doc/library/idle.rst
--- a/Doc/library/idle.rst Wed Aug 24 17:52:57 2016 -0400
+++ b/Doc/library/idle.rst Thu Aug 25 01:22:30 2016 -0400
@@ -562,11 +562,13 @@
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 -r 37335860e0f7 -r 641852513b8e Lib/idlelib/help.html
--- a/Lib/idlelib/help.html Wed Aug 24 17:52:57 2016 -0400
+++ b/Lib/idlelib/help.html Thu Aug 25 01:22:30 2016 -0400
@@ -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 @@
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.