@@ -357,7 +357,7 @@ for more on Help menu choices.
357
357
single: Clear Breakpoint
358
358
single: breakpoints
359
359
360
- Context Menus
360
+ Context menus
361
361
^^^^^^^^^^^^^^^^^^^^^^^^^^
362
362
363
363
Open a context menu by right-clicking in a window (Control-click on macOS).
@@ -398,7 +398,7 @@ Squeeze
398
398
399
399
.. _editing-and-navigation :
400
400
401
- Editing and navigation
401
+ Editing and Navigation
402
402
----------------------
403
403
404
404
Editor windows
@@ -576,17 +576,29 @@ line to the top of the editor.
576
576
The text and background colors for the context pane can be configured under
577
577
the Highlights tab in the Configure IDLE dialog.
578
578
579
- Python Shell window
580
- ^^^^^^^^^^^^^^^^^^^
579
+ Shell window
580
+ ^^^^^^^^^^^^
581
581
582
- With IDLE's Shell, one enters, edits, and recalls complete statements.
583
- Most consoles and terminals only work with a single physical line at a time.
582
+ In IDLE's Shell, enter, edit, and recall complete statements. (Most
583
+ consoles and terminals only work with a single physical line at a time).
584
+
585
+ Submit a single-line statement for execution by hitting :kbd: `Return `
586
+ with the cursor anywhere on the line. If a line is extended with
587
+ Backslash (:kbd: `\\ `), the cursor must be on the last physical line.
588
+ Submit a multi-line compound statement by entering a blank line after
589
+ the statement.
584
590
585
591
When one pastes code into Shell, it is not compiled and possibly executed
586
- until one hits :kbd: `Return `. One may edit pasted code first.
587
- If one pastes more that one statement into Shell, the result will be a
592
+ until one hits :kbd: `Return `, as specified above.
593
+ One may edit pasted code first.
594
+ If one pastes more than one statement into Shell, the result will be a
588
595
:exc: `SyntaxError ` when multiple statements are compiled as if they were one.
589
596
597
+ Lines containing ``'RESTART' `` mean that the user execution process has been
598
+ re-started. This occurs when the user execution process has crashed,
599
+ when one requests a restart on the Shell menu, or when one runs code
600
+ in an editor window.
601
+
590
602
The editing features described in previous subsections work when entering
591
603
code interactively. IDLE's Shell window also responds to the following keys.
592
604
@@ -603,7 +615,8 @@ code interactively. IDLE's Shell window also responds to the following keys.
603
615
604
616
* :kbd: `Alt - n ` retrieves next. On macOS use :kbd: `C - n `.
605
617
606
- * :kbd: `Return ` while on any previous command retrieves that command
618
+ * :kbd: `Return ` while the cursor is on any previous command
619
+ retrieves that command
607
620
608
621
Text colors
609
622
^^^^^^^^^^^
@@ -627,7 +640,7 @@ Highlighting tab. The marking of debugger breakpoint lines in the editor and
627
640
text in popups and dialogs is not user-configurable.
628
641
629
642
630
- Startup and code execution
643
+ Startup and Code Execution
631
644
--------------------------
632
645
633
646
Upon startup with the ``-s `` option, IDLE will execute the file referenced by
@@ -894,7 +907,7 @@ with the default subprocess if at all possible.
894
907
.. deprecated :: 3.4
895
908
896
909
897
- Help and preferences
910
+ Help and Preferences
898
911
--------------------
899
912
900
913
.. _help-sources :
0 commit comments