Python assignment by reference
When hand holding goes wrong Assignment by reference vs copy assignment In case you accept doing assignment at all in your language you need to choose which way to pass your objects when assigning to new variables or calling functions etc. There are two general ways; You either copy it or just tell where the original is. We could imagine some combination of these if parts of the object is heavy to copy but let’s keep it in our pants. …