Python Changing module variables in another module
module, python
Solution
You should be able to do:
import foo
foo.arbit = 'new value'
Problem
Say I am importing the module 'foo' into the module 'bar'. Is it possible for me to change a global variable in foo inside bar? Let the global variable in foo be 'arbit'. Change arbit so that if bar were to call a function of foo that uses this variable, the updated variable is used rather than the one before that.