diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-11 10:05:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 10:05:41 (GMT) |
commit | 847d7708ba8739a5d5d31f22d71497527a7d8241 (patch) | |
tree | 58d716731eaf7ff9b9e5bd806d1c8a2b26157ff9 /Doc/library/timeit.rst | |
parent | 8795ad1bd0d6ee031543fcaf5a86a60b37950714 (diff) | |
download | cpython-847d7708ba8739a5d5d31f22d71497527a7d8241.zip cpython-847d7708ba8739a5d5d31f22d71497527a7d8241.tar.gz cpython-847d7708ba8739a5d5d31f22d71497527a7d8241.tar.bz2 |
gh-98763: Prefer "python" over "python3" for command line examples in docs. (#98761)
Diffstat (limited to 'Doc/library/timeit.rst')
-rw-r--r-- | Doc/library/timeit.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/timeit.rst b/Doc/library/timeit.rst index 660a546..5437704 100644 --- a/Doc/library/timeit.rst +++ b/Doc/library/timeit.rst @@ -27,11 +27,11 @@ can be used to compare three different expressions: .. code-block:: shell-session - $ python3 -m timeit '"-".join(str(n) for n in range(100))' + $ python -m timeit '"-".join(str(n) for n in range(100))' 10000 loops, best of 5: 30.2 usec per loop - $ python3 -m timeit '"-".join([str(n) for n in range(100)])' + $ python -m timeit '"-".join([str(n) for n in range(100)])' 10000 loops, best of 5: 27.5 usec per loop - $ python3 -m timeit '"-".join(map(str, range(100)))' + $ python -m timeit '"-".join(map(str, range(100)))' 10000 loops, best of 5: 23.2 usec per loop This can be achieved from the :ref:`python-interface` with:: |