[New-bugs-announce] [issue18518] timeit bug?
icedream91
report at bugs.python.org
Sun Jul 21 11:47:00 CEST 2013
New submission from icedream91:
When I ran code below, it printed -1. The question is, the code in variable snippet, has wrong syntax, it can't be run. I think timeit should return only non-negative float type.
from timeit import timeit
snippet="""
for i in range(10):
return -1
"""
print(timeit(snippet))
Thanks.
----------
components: Library (Lib)
messages: 193429
nosy: icedream91
priority: normal
severity: normal
status: open
title: timeit bug?
type: behavior
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18518>
_______________________________________
More information about the New-bugs-announce
mailing list