class Point: def __init__(self, x_or_obj = 0, y = 0): if isinstance(x_or_obj, Point): self.x = x_or_obj.x self.y = x_or_obj.y