summaryrefslogtreecommitdiff
path: root/Doc/library/timeit.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-01-26 12:09:59 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-01-26 12:09:59 +0200
commitc959b0cd3061bdad445f839c13ecb69e86ec0b9c (patch)
tree63a4f4ca444f492aa2a28aef8c6d77c52ad1ed03 /Doc/library/timeit.rst
parent230586739cc090ededbe45f101d8df75e5772455 (diff)
parent2bef58577f1caa293a4843f4bdf245407825a61a (diff)
downloadcpython-git-c959b0cd3061bdad445f839c13ecb69e86ec0b9c.tar.gz
Issue #18518: timeit now rejects statements which can't be compiled outside
a function or a loop (e.g. "return" or "break").
Diffstat (limited to 'Doc/library/timeit.rst')
-rw-r--r--Doc/library/timeit.rst6
1 files changed, 0 insertions, 6 deletions
diff --git a/Doc/library/timeit.rst b/Doc/library/timeit.rst
index dea1ba7c96..17588bdc87 100644
--- a/Doc/library/timeit.rst
+++ b/Doc/library/timeit.rst
@@ -69,12 +69,6 @@ The module defines three convenience functions and a public class:
.. versionchanged:: 3.5
The optional *globals* parameter was added.
- .. note::
-
- Because :meth:`.timeit` is executing *stmt*, placing a return statement
- in *stmt* will prevent :meth:`.timeit` from returning execution time.
- It will instead return the data specified by your return statement.
-
.. function:: repeat(stmt='pass', setup='pass', timer=<default timer>, repeat=3, number=1000000, globals=None)