timeit's environment
Scott David Daniels
scott.daniels at acm.org
Mon Dec 5 11:19:41 EST 2005
rurpy at yahoo.com wrote:
> Since I've been bitching about documentation in another
> thread, I'm curious... Would it be obvious to anyone of
> low to intermediate python skills that using global would
> not work in this case? Would it be obvious that using an
> import is the answer? Or can I blame this partially on the
> documentation? :-) I think the scoping issue could have
> at least been mentioned in the Timer class or timeit method
> descriptions. There is no mention there of exactly what
> environment the code is run in.
Perhaps you could write a paragraph or two that would have
informed you and send it to the destination mentioned on the
documentation page.
--
-Scott David Daniels
scott.daniels at acm.org
More information about the Python-list
mailing list