Commit 39d74a91 authored by Martin Panter's avatar Martin Panter

Issue #26638: Cannot directly link to main option from the “timeit” module

This seems to be because the “timeit” module defines its own set of options
parent e3e362e3
...@@ -232,7 +232,8 @@ Unix, you can use :func:`time.clock` to measure CPU time. ...@@ -232,7 +232,8 @@ Unix, you can use :func:`time.clock` to measure CPU time.
The code here doesn't try to hide it, but you should be aware of it. The The code here doesn't try to hide it, but you should be aware of it. The
baseline overhead can be measured by invoking the program without arguments, and baseline overhead can be measured by invoking the program without arguments, and
it might differ between Python versions. Also, to fairly compare older Python it might differ between Python versions. Also, to fairly compare older Python
versions to Python 2.3, you may want to use Python's :option:`-O` option for versions to Python 2.3, you may want to use Python's :option:`!-O`
option (see :ref:`Optimizations <using-on-optimizations>`) for
the older versions to avoid timing ``SET_LINENO`` instructions. the older versions to avoid timing ``SET_LINENO`` instructions.
......
...@@ -224,6 +224,7 @@ Miscellaneous options ...@@ -224,6 +224,7 @@ Miscellaneous options
raises an exception. See also :envvar:`PYTHONINSPECT`. raises an exception. See also :envvar:`PYTHONINSPECT`.
.. _using-on-optimizations:
.. cmdoption:: -O .. cmdoption:: -O
Turn on basic optimizations. This changes the filename extension for Turn on basic optimizations. This changes the filename extension for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment