[New-bugs-announce] [issue40670] supplying an empty string to timeit causes an IndentationError
Edison Abahurire
report at bugs.python.org
Mon May 18 08:44:21 EDT 2020
New submission from Edison Abahurire <abahedison1 at outlook.com>:
The Error can be evidenced below:
```
>>>
>>> import timeit
>>>
>>> timeit.timeit('', number=10000)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/timeit.py", line 232, in timeit
return Timer(stmt, setup, timer, globals).timeit(number)
File "/usr/lib/python3.8/timeit.py", line 131, in __init__
code = compile(src, dummy_src_name, "exec")
File "<timeit-src>", line 7
_t1 = _timer()
^
IndentationError: expected an indented block
>>>
```
----------
messages: 369208
nosy: anthonypjshaw, edison.abahurire
priority: normal
severity: normal
status: open
title: supplying an empty string to timeit causes an IndentationError
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40670>
_______________________________________
More information about the New-bugs-announce
mailing list