question on global variables

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

<mongo57a at> wrote in message
news:3da4fe61_8 at
> 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 to look
up 'global variables' within Python archive -- this has been discussed
in several postings


More information about the Python-list mailing list