[issue2527] Pass a namespace to timeit
Alexander Belopolsky
report at bugs.python.org
Tue Apr 1 17:53:24 CEST 2008
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
On the second thought, I actually wanted Timer to mimic eval without
realizing that eval uses positional rather than keywords arguments.
'locals' is obviously a bad choice for the keyword parameter because it
masks locals() builtin. Maybe 'local_namespace'?
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2527>
__________________________________
More information about the Python-bugs-list
mailing list