F
Fuming Wang
Hi,
I have several modules that need to access global variables among
them. I can do that by import modules:
module A:
gA = 'old'
module B:
import A
print A.gA
change gA in module A after some initialization:
def init_fuct():
gA = 'new'
no change in module B:
print A.gA
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 *)
Thanks,
Fuming
I have several modules that need to access global variables among
them. I can do that by import modules:
module A:
gA = 'old'
module B:
import A
print A.gA
change gA in module A after some initialization:
def init_fuct():
gA = 'new'
no change in module B:
print A.gA
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 *)
Thanks,
Fuming