def assign_to ( self , obj ) : obj . x = self . x obj . y = self . y
how to give an object a new member variable python
Assign x and y to an object that has properties x and y .
def assign_to(self, obj):
    """Assign `x` and `y` to an object that has properties `x` and `y`."""
    obj.x = self.x
    obj.y = self.y