Accessing and updating global variables among several modules
fumingw at tom.com
Sat Jul 12 05:38:48 CEST 2003
I have several modules that need to access global variables among
them. I can do that by import modules:
gA = 'old'
change gA in module A after some initialization:
gA = 'new'
no change in module B:
However, when I modify these global variables in one module, the other
modules would not see the changes. Any one has any suggestions? ( I
don't want to use from A import *)
More information about the Python-list