Skip to content

Commit 738dde3

Browse files
[3.11] gh-102354: change python3 to python in docs examples (GH-102696) (#102697)
gh-102354: change python3 to python in docs examples (GH-102696) (cherry picked from commit 80abd62) Co-authored-by: Paul Watson <paul.hermeneutic@gmail.com>
1 parent 1f7eb8f commit 738dde3

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Doc/library/__main__.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ one mentioned below are preferred.
259259

260260
See :mod:`venv` for an example of a package with a minimal ``__main__.py``
261261
in the standard library. It doesn't contain a ``if __name__ == '__main__'``
262-
block. You can invoke it with ``python3 -m venv [directory]``.
262+
block. You can invoke it with ``python -m venv [directory]``.
263263

264264
See :mod:`runpy` for more details on the :option:`-m` flag to the
265265
interpreter executable.

Doc/library/importlib.metadata.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ something into it:
7373

7474
.. code-block:: shell-session
7575
76-
$ python3 -m venv example
76+
$ python -m venv example
7777
$ source example/bin/activate
7878
(example) $ python -m pip install wheel
7979

Doc/library/pdb.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ of the debugger is::
5858
:file:`pdb.py` can also be invoked as a script to debug other scripts. For
5959
example::
6060

61-
python3 -m pdb myscript.py
61+
python -m pdb myscript.py
6262

6363
When invoked as a script, pdb will automatically enter post-mortem debugging if
6464
the program being debugged exits abnormally. After post-mortem debugging (or
@@ -72,7 +72,7 @@ useful than quitting the debugger upon program's exit.
7272

7373
.. versionadded:: 3.7
7474
:file:`pdb.py` now accepts a ``-m`` option that execute modules similar to the way
75-
``python3 -m`` does. As with a script, the debugger will pause execution just
75+
``python -m`` does. As with a script, the debugger will pause execution just
7676
before the first line of the module.
7777

7878

Doc/tutorial/venv.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ whichever version you want.
4444
To create a virtual environment, decide upon a directory where you want to
4545
place it, and run the :mod:`venv` module as a script with the directory path::
4646

47-
python3 -m venv tutorial-env
47+
python -m venv tutorial-env
4848

4949
This will create the ``tutorial-env`` directory if it doesn't exist,
5050
and also create directories inside it containing a copy of the Python

Doc/using/venv-create.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Creation of :ref:`virtual environments <venv-def>` is done by executing the
22
command ``venv``::
33

4-
python3 -m venv /path/to/new/virtual/environment
4+
python -m venv /path/to/new/virtual/environment
55

66
Running this command creates the target directory (creating any parent
77
directories that don't exist already) and places a ``pyvenv.cfg`` file in it

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy