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 |
  • -
  • Python »
  • +
  • Python »
  • - 3.5.1 Documentation » + 3.5.2 Documentation »
  • - - + + @@ -492,7 +492,7 @@ executed in the Tk namespace, so this file is not useful for importing functions to be used from IDLE’s Python shell.

    25.5.3.1. Command line usage¶

    -
    idle.py [-c command] [-d] [-e] [-h] [-i] [-r file] [-s] [-t title] [-] [arg] ...
    +
    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.

    25.5.3.3. Running without a subprocess¶

    @@ -657,14 +659,11 @@ are currently:

    @@ -688,13 +687,13 @@ are currently:

    >previous |
  • -
  • Python »
  • +
  • Python »
  • - 3.5.1 Documentation » + 3.5.2 Documentation »
  • - - + +
    -- 2.40.0