mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
gh-106232: Make timeit doc command lines compatible with Windows. (#106296)
Command Prompt (CMD Shell) and older versions of PowerShell require double quotes and single quotes inside the string. This form also works on linux and macOS.
This commit is contained in:
parent
eb7d6e7ad8
commit
04dfc6fa90
3 changed files with 12 additions and 10 deletions
|
@ -109,7 +109,7 @@ source.
|
|||
Many standard library modules contain code that is invoked on their execution
|
||||
as a script. An example is the :mod:`timeit` module::
|
||||
|
||||
python -m timeit -s 'setup here' 'benchmarked code here'
|
||||
python -m timeit -s "setup here" "benchmarked code here"
|
||||
python -m timeit -h # for details
|
||||
|
||||
.. audit-event:: cpython.run_module module-name cmdoption-m
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue