Message246717
Issue5633 introduced a regression in 3.5.
$ ./python -m timeit -s "a = 1" -s "b = 2"
Traceback (most recent call last):
File "/home/serhiy/py/cpython-3.5/Lib/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/home/serhiy/py/cpython-3.5/Lib/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/serhiy/py/cpython-3.5/Lib/timeit.py", line 338, in <module>
sys.exit(main())
File "/home/serhiy/py/cpython-3.5/Lib/timeit.py", line 296, in main
t = Timer(stmt, setup, timer)
File "/home/serhiy/py/cpython-3.5/Lib/timeit.py", line 122, in __init__
compile(setup + '\n' + stmt, dummy_src_name, "exec")
File "<timeit-src>", line 2
b = 2
^
IndentationError: unexpected indent
Proposed patch fixes it. |
|
| Date |
User |
Action |
Args |
| 2015-07-14 05:10:51 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
| 2015-07-14 05:10:51 | serhiy.storchaka | set | messageid: <1436850651.25.0.287114682674.issue24631@psf.upfronthosting.co.za> |
| 2015-07-14 05:10:51 | serhiy.storchaka | link | issue24631 messages |
| 2015-07-14 05:10:50 | serhiy.storchaka | create | |
|