Can module access global from __main__?
ndbecker2 at gmail.com
Tue Oct 11 15:38:04 CEST 2005
Suppose I have a main program, e.g., A.py. In A.py we have:
X = 2
Now B is a module B.py. In B, how can we access the value of X?
More information about the Python-list