mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Issue #25564: Mention exec and __builtins__ in IDLE-console difference section.
This commit is contained in:
parent
de260a6fa8
commit
1f8cc33f88
2 changed files with 25 additions and 24 deletions
|
|
@ -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
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue