Using a dict as if it were a module namespace

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Mon Jan 28 02:52:14 EST 2008


On Sun, 27 Jan 2008 11:16:00 -0700, Steven Bethard wrote:

> Why not mess with the namespace inside the setup code? E.g.::
[snip]

Ah, thanks, good thinking. It's not perfect, but it should be close 
enough for what I'm trying to do.


-- 
Steven
who still wishes you could explicitly pass a namespace to timeit.Timer...




More information about the Python-list mailing list