The problem is, with
anotherObject = someObject
you don’t copy the object, but just add another reference to it. To copy an object, try this:
from copy import copy
anotherObject = copy(someObject)
The problem is, with
anotherObject = someObject
you don’t copy the object, but just add another reference to it. To copy an object, try this:
from copy import copy
anotherObject = copy(someObject)