Possible Duplicate:
Python - how does passing values work?
If I have a variable and instantiate it to None, how can I go about making an assignment that reflects the change in more than one scope?
For example:
def doStuff(test):
test = "hello world"
def main():
test = None
doStuff(test)
print(test)
If I guessed correctly, then the output is nothing because "test" was passed by value? Is there a way I can make it passed by reference without statically declaring the type before the function?