global declarations
Erik Max Francis
max at alcyone.com
Sun Dec 22 21:58:20 EST 2002
Frederik Fuest wrote:
> i've a problem with the 'global variables' in classes.
> It seems, that it isnt possible to make a real global declaration of
> lists or strings in a class. Whatever i try, if i call functions from
> other functions in my class, these functions are no longer able to
> know
> the global variables!?
You probably need to use the global statement before you use the
variables in some local scope. Without a specific code example, it's
hard to point you in a better direction.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ I want to know God's thought; the rest are details.
\__/ Albert Einstein
WebVal / http://www.alcyone.com/pyos/webval/
URL scanner, maintainer, and validator in Python.
More information about the Python-list
mailing list