This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scott_daniels
Recipients scott_daniels
Date 2009-07-05.15:15:09
SpamBayes Score 4.6147452e-05
Marked as misclassified No
Message-id <1246806912.2.0.722769600334.issue6422@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-07-05 15:15:12scott_danielssetrecipients: + scott_daniels
2009-07-05 15:15:12scott_danielssetmessageid: <1246806912.2.0.722769600334.issue6422@psf.upfronthosting.co.za>
2009-07-05 15:15:10scott_danielslinkissue6422 messages
2009-07-05 15:15:09scott_danielscreate