Skip to content

Commit 34e1254

Browse files
committed
qh-76773: Revert py ver change 1 place in win doc & clean up code blocks
1 parent 637ce8e commit 34e1254

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

Doc/using/windows.rst

+12-20
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ may be changed from ``.``, and the package will be installed into a
378378
subdirectory. By default, the subdirectory is named the same as the package,
379379
and without the ``-ExcludeVersion`` option this name will include the specific
380380
version installed. Inside the subdirectory is a ``tools`` directory that
381-
contains the Python installation::
381+
contains the Python installation:
382+
383+
.. code-block:: doscon
382384
383385
# Without -ExcludeVersion
384386
> .\python.3.5.2\tools\python.exe -V
@@ -672,9 +674,7 @@ From the command-line
672674
System-wide installations of Python 3.3 and later will put the launcher on your
673675
:envvar:`PATH`. The launcher is compatible with all available versions of
674676
Python, so it does not matter which version is installed. To check that the
675-
launcher is available, execute the following command in Command Prompt:
676-
677-
::
677+
launcher is available, execute the following command in Command Prompt::
678678

679679
py
680680

@@ -684,36 +684,30 @@ arguments specified will be sent directly to Python.
684684

685685
If you have multiple versions of Python installed (e.g., 3.7 and |version|) you
686686
will have noticed that Python |version| was started - to launch Python 3.7, try
687-
the command:
688-
689-
::
687+
the command::
690688

691689
py -3.7
692690

693-
If you want the latest version of Python 3 you have installed, try the
694-
command:
691+
If you want the latest version of Python 2 you have installed, try the
692+
command::
695693

696-
::
697-
698-
py -3
694+
py -2
699695

700696
You should find the latest version of Python 3.x starts.
701697

702-
If you see the following error, you do not have the launcher installed:
703-
704-
::
698+
If you see the following error, you do not have the launcher installed::
705699

706700
'py' is not recognized as an internal or external command,
707701
operable program or batch file.
708702

709703
Per-user installations of Python do not add the launcher to :envvar:`PATH`
710704
unless the option was selected on installation.
711705

712-
::
706+
The command::
713707

714708
py --list
715709

716-
You should see the currently installed versions of Python.
710+
displays the currently installed version(s) of Python.
717711

718712
Virtual environments
719713
^^^^^^^^^^^^^^^^^^^^
@@ -739,9 +733,7 @@ following contents
739733
import sys
740734
sys.stdout.write("hello from Python %s\n" % (sys.version,))
741735
742-
From the directory in which hello.py lives, execute the command:
743-
744-
::
736+
From the directory in which hello.py lives, execute the command::
745737

746738
py hello.py
747739

0 commit comments

Comments
 (0)