Skip to content

Commit 8e5d7b5

Browse files
Improved clarity and readability in 'Using the Python Interpreter' section of the tutorial
1 parent ec91e1c commit 8e5d7b5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Doc/tutorial/interpreter.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Invoking the Interpreter
1111
========================
1212

1313
The Python interpreter is usually installed as |usr_local_bin_python_x_dot_y_literal|
14-
on those machines where it is available; putting :file:`/usr/local/bin` in your
15-
Unix shell's search path makes it possible to start it by typing the command:
14+
on those machines where it is available; Ensure /usr/local/bin is included in your Unix
15+
shell's search path to start the interpreter by typing the command:
1616

1717
.. code-block:: text
1818
@@ -23,10 +23,10 @@ is an installation option, other places are possible; check with your local
2323
Python guru or system administrator. (E.g., :file:`/usr/local/python` is a
2424
popular alternative location.)
2525

26-
On Windows machines where you have installed Python from the :ref:`Microsoft Store
27-
<windows-store>`, the |python_x_dot_y_literal| command will be available. If you have
28-
the :ref:`py.exe launcher <launcher>` installed, you can use the :file:`py`
29-
command. See :ref:`setting-envvars` for other ways to launch Python.
26+
On Windows, if you installed Python from the :ref:Microsoft Store <windows-store>,
27+
the |python_x_dot_y_literal| command will be available. Alternatively, if you have the
28+
:ref:py.exe launcher <launcher> installed, you can use the :file:py command to launch
29+
Python.
3030

3131
Typing an end-of-file character (:kbd:`Control-D` on Unix, :kbd:`Control-Z` on
3232
Windows) at the primary prompt causes the interpreter to exit with a zero exit
@@ -37,7 +37,8 @@ The interpreter's line-editing features include interactive editing, history
3737
substitution and code completion on systems that support the `GNU Readline
3838
<https://tiswww.case.edu/php/chet/readline/rltop.html>`_ library.
3939
Perhaps the quickest check to see whether command line editing is supported is
40-
typing :kbd:`Control-P` to the first Python prompt you get. If it beeps, you
40+
typing :kbd:`Control-P` to the first Python prompt you get. i.e. Pressing :kbd:Control-P
41+
moves to the previous command in the command history. If it beeps, you
4142
have command line editing; see Appendix :ref:`tut-interacting` for an
4243
introduction to the keys. If nothing appears to happen, or if ``^P`` is
4344
echoed, command line editing isn't available; you'll only be able to use

0 commit comments

Comments
 (0)