summaryrefslogtreecommitdiffstats
path: root/Doc/library/timeit.rst
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-04-16 04:59:38 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-04-16 04:59:38 (GMT)
commit00ccacc8db8194f15d8af26b788ec36314b990d1 (patch)
tree98bf16d9eeb894fdcb464eed646d53b4d366bfe7 /Doc/library/timeit.rst
parentb4912b8ed367e540ee060fe912f841cc764fd293 (diff)
downloadcpython-00ccacc8db8194f15d8af26b788ec36314b990d1.zip
cpython-00ccacc8db8194f15d8af26b788ec36314b990d1.tar.gz
cpython-00ccacc8db8194f15d8af26b788ec36314b990d1.tar.bz2
Issue #26638: Fix links to some CLI options and section headings
* Disable inappropriate links to Python interpreter options * Correct link to CLI section in zipapp * Make CLI section label in timeit less ambiguous
Diffstat (limited to 'Doc/library/timeit.rst')
-rw-r--r--Doc/library/timeit.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/timeit.rst b/Doc/library/timeit.rst
index d1051f6..16baf91 100644
--- a/Doc/library/timeit.rst
+++ b/Doc/library/timeit.rst
@@ -14,7 +14,7 @@
--------------
This module provides a simple way to time small bits of Python code. It has both
-a :ref:`command-line-interface` as well as a :ref:`callable <python-interface>`
+a :ref:`timeit-command-line-interface` as well as a :ref:`callable <python-interface>`
one. It avoids a number of common traps for measuring execution times.
See also Tim Peters' introduction to the "Algorithms" chapter in the *Python
Cookbook*, published by O'Reilly.
@@ -23,7 +23,7 @@ Cookbook*, published by O'Reilly.
Basic Examples
--------------
-The following example shows how the :ref:`command-line-interface`
+The following example shows how the :ref:`timeit-command-line-interface`
can be used to compare three different expressions:
.. code-block:: sh
@@ -174,7 +174,7 @@ The module defines three convenience functions and a public class:
where the traceback is sent; it defaults to :data:`sys.stderr`.
-.. _command-line-interface:
+.. _timeit-command-line-interface:
Command-Line Interface
----------------------