I have two files random1.py, random2.py
random2.py has
def your():
global mine
mine = 10
random1.py has
import random2.py
global mine
mine = 4
random.your()
print mine
random1.py prints out 4 not 10.
My ultimate goal is to have functions that can take in any possible variable that has been declared and have the new values for that variable available after the function is run. I have all of the functions in a separate file though for organization. I noticed it works if I have them in the same file.
I am trying to replicate the functionality of procedures from Hoc