Question: are arrays passed by reference in python?
Answer: String arrays, lists, tuples, and dictionaries are passed to and from by value. Numeric arrays are passed by reference when they are used as arguments or keywords to Python methods. Numeric arrays are passed by value when they are passed from IDL to the Python __main__ level and when Python returns a result to IDL.