question on global variables
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
> refer to as a "global" variable.
> I see that there is a "global" command - and I assume its use would
> global var_name. This I have coded (works) but I am unable to use it
> 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
More information about the Python-list