Mine
public text v1 · immutable>>> import copy
>>>
>>> class A:
... def __init__ (self, obj=None):
... if obj:
... self = copy.copy (obj)
...
>>> a = A()
>>> a.m1 = 10
>>> b = A(a)
>>> b.m1
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: A instance has no attribute 'm1'