pass by refernece python code example
Example: python send object reference to another function and edit property
class Test:
a = 1
def f(obj):
obj.a = 10
t = Test()
f(t)
# t.a should be 10
class Test:
a = 1
def f(obj):
obj.a = 10
t = Test()
f(t)
# t.a should be 10