[issue5441] Convenience API for timeit.main

2018-03-14 Thread Jeremy Metz
Jeremy Metz added the comment: More specifically, #6422 also mentions at least in part this functionality, but the main focus there seems to be the autorange function. Propose splitting these two by reopening this use. -- ___ Python tracker

[issue5441] Convenience API for timeit.main

2018-03-14 Thread Jeremy Metz
Jeremy Metz added the comment: Don't understand how #6422 addresses this - would also like to see a more convenient API for timing; at present CLI gives a nice formatted output, and timeit.timeit gives just the raw timing in seconds. Would be easy to implement by simply refactoring main() in

[issue5441] Convenience API for timeit.main

2012-06-26 Thread Nick Coghlan
Changes by Nick Coghlan : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5441] Convenience API for timeit.main

2012-06-26 Thread Nick Coghlan
Nick Coghlan added the comment: Close in favour of #6422 - that one at least has a patch :) -- resolution: -> duplicate superseder: -> timeit called from within Python should allow autoranging ___ Python tracker

[issue5441] Convenience API for timeit.main

2012-01-09 Thread Simon Sapin
Changes by Simon Sapin : -- nosy: +ssapin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue5441] Convenience API for timeit.main

2011-07-23 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue5441] Convenience API for timeit.main

2010-08-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5441] Convenience API for timeit.main

2009-04-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: See related discussion in issue 2527 and issue 1397474. -- assignee: rhettinger -> ___ Python tracker ___ __

[issue5441] Convenience API for timeit.main

2009-03-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger nosy_count: 2.0 -> 3.0 ___ Python tracker ___ ___ Python-b

[issue5441] Convenience API for timeit.main

2009-03-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: It would be even better if you could pass a locals or globals dictionnary instead of the "setup" arg. And even even better if it could implicitly get the locals/globals from the calling frame :-) -- message_count: 1.0 -> 2.0 nosy: +pitrou nosy_count: 1.

[issue5441] Convenience API for timeit.main

2009-03-07 Thread Nick Coghlan
New submission from Nick Coghlan : For quick and dirty benchmarking, timeit.main() is one of the handiest tools out there, but calling it from Python code is a little tedious since you need to construct a fake list of command line arguments in order to call it. What would be nice is a convenienc