[spambayes-dev] RE: [Spambayes-checkins] spambayes/spambayesstorage.py, 1.31, 1.32

Tony Meyer ta-meyer at ihug.co.nz
Thu Sep 11 14:42:27 EDT 2003


> "import xyz" binds the name xyz in the local scope, to the 
> module object being imported.  It's exactly like an 
> assignment statement this way.
[...]
> The local name x within f has nothing to do with the global 
> name x, and the local x within f is referenced before it's 
> been bound to a value.  The same thing happens with sys.

Ah, so it was the _import_, not the sys.stderr, that was the problem.  Now I
understand :)

Thanks,
Tony




More information about the spambayes-dev mailing list