diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-25 05:22:30 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-25 05:22:30 (GMT) |
commit | 1f8cc33f884e5d6f5d4f0724ce8b03a4044da5e9 (patch) | |
tree | a7d5444c534a32d6aa00d113ee13ded30f061fc0 /Doc | |
parent | de260a6fa8c52a1773906d295e915967af180461 (diff) | |
download | cpython-1f8cc33f884e5d6f5d4f0724ce8b03a4044da5e9.zip cpython-1f8cc33f884e5d6f5d4f0724ce8b03a4044da5e9.tar.gz cpython-1f8cc33f884e5d6f5d4f0724ce8b03a4044da5e9.tar.bz2 |
Issue #25564: Mention exec and __builtins__ in IDLE-console difference section.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/idle.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index 4a8c257..0b8171d 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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |