Andre Delfino
594f0ce73b
[doc] Fix padding in timeit (GH-22152)
...
Compare -p and -u options help in rendered output to see the difference.
2020-09-08 16:39:19 -07:00
Sander
766352320f
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 10 (GH-19752)
2020-05-02 19:12:05 +03:00
Anders Hovmöller
8da5ebe11e
bpo-35138: Added an example for timeit.timeit with callable arguments (GH-9787)
...
* Update timeit.rst
2019-05-13 21:27:17 +02:00
Shiv Dhar
4064089fce
Fix grammar error in timeit module docs (GH-12066)
...
skip issue
skip news
2019-02-27 15:21:15 -08:00
Henry Chen
06f8b57212
bpo-35738: Update the example for timer.Timer.repeat(). (GH-11559)
...
Show correct number of repeats.
2019-01-15 12:29:21 +02:00
Victor Stinner
3ef769fcd3
bpo-28240: timeit: Update repeat() doc (GH-7419)
...
Document that the default value of repeat changed from 3 to 5 in
Python 3.7.
2018-06-06 17:55:18 +02:00
Serhiy Storchaka
46936d5a71
Improve highlighting of some code blocks. (GH-6401)
2018-04-08 19:18:04 +03:00
Xiang Zhang
210d6a9f95
bpo-29662: fix wrong indentation in timeit.Timer's doc (GH-332)
2017-02-27 13:42:01 +08:00
Serhiy Storchaka
d3ff784f2d
Issue #28469 : timeit now uses the sequence 1, 2, 5, 10, 20, 50,... instead
...
of 1, 10, 100,... for autoranging.
2016-10-23 15:17:05 +03:00
Serhiy Storchaka
c2e9983060
Issue #19795 : Mark up None as literal text.
2016-10-19 16:39:36 +03:00
Serhiy Storchaka
989db5c880
Issue #19795 : Mark up None as literal text.
2016-10-19 16:37:13 +03:00
Victor Stinner
c3e40f8c5b
timeit: add nsec (nanosecond) unit for format timings
...
Issue #28240 .
2016-10-18 17:42:48 +02:00
Victor Stinner
3d7feb9ac2
timeit: remove --clock and --time options
...
Issue #28240 : timeit: remove -c/--clock and -t/--time command line options
which were deprecated since Python 3.3.
2016-10-18 17:18:21 +02:00
Steven D'Aprano
a0d3eeff86
Add versionadded tag to docs for timeit.autorange
2016-08-15 02:47:49 +10:00
Steven D'Aprano
09f4f711b6
Issue6422 add autorange method to timeit.Timer
2016-08-15 01:27:03 +10:00
Terry Jan Reedy
fa089b9b0b
Issue #22558 : Add remaining doc links to source code for Python-coded modules.
...
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
2016-06-11 15:02:54 -04:00
Martin Panter
00ccacc8db
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
2016-04-16 04:59:38 +00:00
Andrew Kuchling
c3a7f18100
Merge from 3.4
2015-04-21 19:44:54 -04:00
Andrew Kuchling
333518e01d
#15183 : clarify timeit documentation to say that setup statement isn't timed
2015-04-21 19:43:33 -04:00
Robert Collins
302dbc6792
Issue #18983 : Allow selection of output units in timeit.
...
This allows manual selection of a specific unit such as usecs rather than the
use of a heuristic. This is intended to aid machine processing of timeit
output.
Patch by Serhiy Storchaka.
2015-03-18 09:54:50 +13:00
Serhiy Storchaka
c959b0cd30
Issue #18518 : timeit now rejects statements which can't be compiled outside
...
a function or a loop (e.g. "return" or "break").
2015-01-26 12:09:59 +02:00
Serhiy Storchaka
2bef58577f
Issue #18518 : timeit now rejects statements which can't be compiled outside
...
a function or a loop (e.g. "return" or "break").
2015-01-26 12:09:17 +02:00
Antoine Pitrou
ef3b9ed0ac
Issue #2527 : Add a *globals* argument to timeit functions, in order to override the globals namespace in which the timed code is executed.
...
Patch by Ben Roberts.
2014-08-22 23:13:50 -04:00
Ezio Melotti
591176e544
#18588 : update the timeit examples to be consistent.
2014-08-04 17:01:16 +03:00
Andrew Kuchling
44da19a63d
#18518 : mention that including a return statement changes/breaks the behaviour
2014-04-14 13:39:43 -04:00