[docs] [issue18518] return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit

R. David Murray report at bugs.python.org
Mon Jul 22 04:20:04 CEST 2013


R. David Murray added the comment:

Rather than closing it, we converted it to a documentation issue.  I think it is worth a footnote in the docs, since it is not obvious (without reading the source code) that a return statement will cause timeit to return an invalid result instead of raising a syntax error.

----------
resolution: wont fix -> 
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18518>
_______________________________________


More information about the docs mailing list