Global variables..

Ishwar Rattan rattan at cps.cmich.edu
Tue Oct 26 13:43:41 CEST 2004


Jeff Shannon <jeff at ccvcorp.com> wrote in message news:<10nr45n59gk9011 at corp.supernews.com>...
> Ishwar Rattan wrote:
> 
> >Say I have two pythom modules in separate files:
> >main.py -> contains main() modules and uses a global variable (say a)
> >incr.py -> 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.
-ishwar



More information about the Python-list mailing list