Which class method is being called when we declare below expression?
Hello gauys, Which list class method will call for below codes? L = [1,2,3] And L =[] Thanks, Ajay -- https://mail.python.org/mailman/listinfo/python-list
[no subject]
-- https://mail.python.org/mailman/listinfo/python-list
Copy constructor and assignment operator
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? p(p2) p = p2 Please point out a