On 2018-09-16 08:48, Ajay Patel wrote:
Hello,
Thanks for your reply.
What happen if do copy using copy module? i can see address are
different when using copy module.
Which magic method will call when i an doing deepcopy?
Snippet>>
>>> p =Point(4,5)
__setattr__
__setattr__
__setattr__
>>
On 2018-09-15 19:47, Ajay Patel wrote:
I have created below code and i want to restrict an object copy.
What are the methods called for copy constructor and assignment operator?
Basically i don't want to allow below operation.
p = Point(1,3)
p2 = Point(6,7)
=> How to disallow below operations