Global variables..

Ishwar Rattan rattan at
Tue Oct 26 13:43:41 CEST 2004

Jeff Shannon <jeff at> wrote in message news:<10nr45n59gk9011 at>...
> Ishwar Rattan wrote:
> >Say I have two pythom modules in separate files:
> > -> contains main() modules and uses a global variable (say a)
> > -> contains incre() that changes the value of global variable a
> >(called in main())
> >
> >Is there a way to reflect the change in main()?
> >  
> >
> > Hm, second time today that this question has been asked.  (And both 
> posts sport an .edu address, too.)  Coincidence?
Recall the old adage that if one can't do it then one can always teach :-)
Thanks for the answer.

More information about the Python-list mailing list