Global variables in modules...
With a.py containing this: == a.py === #!/usr/bin/env python import b g = 0 def main(): global g g = 1 b.callb() if __name__ == "__main__": main() == ...and b.py containing... = b.py = import a, sys def callb():
Re: Global variables in modules...
That clears it up. Thanks. -- http://mail.python.org/mailman/listinfo/python-list