global variables - how??
markx.daley at intel.com
Wed Apr 12 14:10:45 EDT 2000
You can also assign them as lists instead of standard variables. Then, when
you reference them in your modules, just use the first entry in the list.
a = [Vorpal]
b = [Bunny!]
I find this list usage quite useful. Hope this helps!
From: William Park [mailto:parkw at better.net]
Sent: Wednesday, April 12, 2000 10:41 AM
To: python-list at python.org
Subject: Re: global variables - how??
On Wed, Apr 12, 2000 at 07:28:37PM +0200, Anders Eggers-Krag wrote:
> how do I define a propper global variable that works in all functions in
As far as I know, you can't. You have to use 'global ...' inside all
> I have tried simply
> defining one outside of any function in the main module,
> I have tried using the global keyword under the same cicumstances,
> but they are not even avialible inside of functions within the main
> Anders Eggers - Krag
More information about the Python-list