The code that I am working on is changing my temporary variables, and I can't figure out how to stop it. Essentially, this is the problem:
def example(array):
temp = array
for i in range whatever:
#change array
I need to change array, but keep temp the same.
copymodule if you need a generic copying function to copy objects independent of their type.