Python – Pass by object: Practical pitfall
Inside a loop I was accessing an object within a dictionary multiple times, transform and visualize it. The intention was, to have all transformation isolated from each other. What actually happened though, was that those transformations accumulated because of Python’s Pass by object reference behavior. Let’s look into this: I would have expected, that the …