truly global variables

ketulp_baroda at ketulp_baroda at
Thu Feb 19 09:47:13 CET 2004

Global variables are not truly global in Python ; they are only global
within a module namespace. I want a variable such that if i change its
value in any module then it should be reflected in other modules too.
What I mean is I wanta varibale say i whose initial value is 1.
If I change value of i in to say 5 and now I print value of i
in ,it should print 5.How to do this??


More information about the Python-list mailing list