[issue2527] Pass a namespace to timeit
Alexander Belopolsky
report at bugs.python.org
Wed Apr 2 16:01:25 CEST 2008
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
On Wed, Apr 2, 2008 at 2:42 AM, Peter Otten <report at bugs.python.org> wrote:
> Alexander, I'm fine with a more specific argument name. ns was what
> the Timer already used internally.
>
Maybe it should be "locals" after all. It does not look like the
conflict with builtin locals() is an issue. Note that this is what
__import__ uses. I still recommend adding globals argument as well
for completeness and more accurate timings when timed code uses
globals.
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2527>
__________________________________
More information about the Python-bugs-list
mailing list