Most efficient way to write data out to a text file?
James Kew
james.kew at btinternet.com
Sat Jun 29 15:22:48 EDT 2002
"Dave Kuhlman" <dkuhlman at rexx.com> wrote in message
news:afkv73$f2274$1 at ID-139865.news.dfncis.de...
> candiazoo at attbi.com wrote:
> > 4) I localized constants I was using in boolean
> > tests (there were declared at the beginning of the module, I moved
> > them to the function call just before the loop).
>
> Is finding things in globals slower than finding them in locals?
Yes: you have to look, and fail to find, in the locals before you look in
the globals.
James
More information about the Python-list
mailing list