I have this class
class TestEvent(object)
value = None
I want to get a duplicate of this class so it isn't referenced but when i try using the copy library the variables are always referenced:
>>> clsOne = TestEvent
>>> clsTwo = copy.deepcopy(TestEvent)
>>> clsOne.value = "hello motto"
>>> clsTwo.value
"hello motto"
This is also the case with copy.copy
. Can someone show me how to get a duplicate of this class?