Can global variable be passed into Python function?

Sam lightaiyee at gmail.com
Fri Feb 21 07:37:59 CET 2014


I need to pass a global variable into a python function. However, the global variable does not seem to be assigned after the function ends. Is it because parameters are not passed by reference? How can I get function parameters to be passed by reference in Python?



More information about the Python-list mailing list