How can I make a python function act on the original object that is given as an argument,
def f(x):
x = None
y = 1
f(y)
y # Returns 1, I want y to return None
I know that y == 1 is the correct behaviour. My question is: is there a trick that makes it possible to have a python function behave as if the argument were passed by reference?