question on global variables

Terry Reedy tjreedy at udel.edu
Thu Oct 10 06:50:26 CEST 2002


<mongo57a at comcast.net> wrote in message
news:3da4fe61_8 at goliath.newsgroups.com...
> Somewhat new to Python here.....
>
> I want to change/use a value throughout my program - what I would
normally
> refer to as a "global" variable.
>
> I see that there is a "global" command - and I assume its use would
be
> global var_name. This I have coded (works) but I am unable to use it
"global
> name var_name is not defined".

look up 'global' statement in ref manual and use groups.google to look
up 'global variables' within Python archive -- this has been discussed
in several postings

TJR





More information about the Python-list mailing list