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.
--
___
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
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
Changes by Nick Coghlan ncogh...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5441
___
___
Python-bugs-list
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
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5441
___
___
Python-bugs-list
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
___
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
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
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
___
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
11 matches
Mail list logo