[issue6422] timeit called from within Python should allow autoranging

Nick Coghlan report at bugs.python.org
Sun Mar 22 07:54:18 CET 2015


Nick Coghlan added the comment:

The current patch moves print operations inside timeit() and repeat(), instead of leaving the main() function as the only one with side effects.

My counter-proposal was to instead extract the current main functionality out into a side-effect free public API of its own, and change the existing main function to call that new API and print the results.

----------

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


More information about the Python-bugs-list mailing list