I have code that is like this
global _portlist1
def Identify():
#do something
_portlist1=["a","b"]
def RunTest():
print _portlist1
#do something else
def run():
Identify()
RunTest()
In RunTest(), _portlist1 is empty, but it was defined in Identify() . Since its a global variable, shouldn't its value have been changed after running Identify()