[issue6422] timeit called from within Python should allow autoranging
Scott David Daniels
report at bugs.python.org
Sun Jul 5 17:15:12 CEST 2009
New submission from Scott David Daniels <Scott.Daniels at Acm.Org>:
timeit.main has a _very_ handy autoranging facility to pick an
appropriate number of repetitions when not specified. The autoranging
code should be lifted to a method on Timer instances (so non-main code
can use it). If number is specified as 0 or None, I would like to use
the results of that autoranging code in Timer.repeat and Timer.timeit.
Patch to follow.
----------
components: Library (Lib)
messages: 90157
nosy: scott_daniels
severity: normal
status: open
title: timeit called from within Python should allow autoranging
type: feature request
versions: Python 2.7, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6422>
_______________________________________
More information about the Python-bugs-list
mailing list