[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. -- ___

[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

[issue5441] Convenience API for timeit.main

2012-06-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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-06-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5441 ___ ___ Python-bugs-list

[issue5441] Convenience API for timeit.main

2012-01-09 Thread Simon Sapin
Changes by Simon Sapin simon.sa...@kozea.fr: -- nosy: +ssapin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5441 ___ ___ Python-bugs-list mailing

[issue5441] Convenience API for timeit.main

2011-07-23 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5441 ___ ___ Python-bugs-list

[issue5441] Convenience API for timeit.main

2010-08-08 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5441 ___

[issue5441] Convenience API for timeit.main

2009-04-07 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: See related discussion in issue 2527 and issue 1397474. -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5441

[issue5441] Convenience API for timeit.main

2009-03-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue5441] Convenience API for timeit.main

2009-03-08 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger nosy: +rhettinger nosy_count: 2.0 - 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5441 ___

[issue5441] Convenience API for timeit.main

2009-03-07 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: 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