summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-01-26 10:09:17 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-01-26 10:09:17 (GMT)
commit2bef58577f1caa293a4843f4bdf245407825a61a (patch)
treeeab5b67eba2ad44a2e183962cfce9527cdfc8fcb /Doc
parent21d7533c4c13489b4b3baae59f9e25cd038fb16b (diff)
downloadcpython-2bef58577f1caa293a4843f4bdf245407825a61a.zip
cpython-2bef58577f1caa293a4843f4bdf245407825a61a.tar.gz
cpython-2bef58577f1caa293a4843f4bdf245407825a61a.tar.bz2
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')
-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 19b5e4e..503a705 100644
--- a/Doc/library/timeit.rst
+++ b/Doc/library/timeit.rst
@@ -64,12 +64,6 @@ The module defines three convenience functions and a public class:
Create a :class:`Timer` instance with the given statement, *setup* code and
*timer* function and run its :meth:`.timeit` method with *number* executions.
- .. 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)