Question about scope
BPettersen at NAREX.com
Thu Jul 5 23:33:22 CEST 2001
> From: Tim Daneliuk [mailto:tundra at tundraware.com]
> I guess what I want to know is when globally declared objects
> are seen inside a function, class, or
> block, and when they must be explicitly declared as being global.
Whenever you want to assign to them you'll need to declare them as
global (otherwise the Python interpreter thinks you're trying to create
a new local variable).
More information about the Python-list