[issue40670] supplying an empty string to timeit causes an IndentationError

Florian Dahlitz report at bugs.python.org
Thu May 21 04:02:50 EDT 2020


Florian Dahlitz <f2dahlitz at freenet.de> added the comment:

Calling timeit from command-line with the empty string defaults to 'pass'. I suggest to adopt this behaviour for calling timeit.timeit in the REPL as @edison.abahurire already suggested. I would be happy to submit a PR for it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40670>
_______________________________________


More information about the Python-bugs-list mailing list