[issue19495] Enhancement for timeit: measure time to run blocks of code using 'with'

Nick Coghlan report at bugs.python.org
Mon Jun 16 10:21:58 CEST 2014


Nick Coghlan added the comment:

I'm with Guido on this one - I don't believe there's a clean sweet spot to hit. There *might* be a plausible case to be made for tracing functionality in the logging module, but even there the number of options multiplies fast enough that writing your own context manager would likely be easier than learning a new API with lots of settings to tweak.

----------

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


More information about the Python-bugs-list mailing list