#!/usr/bin/python class Point: def __init__(self, x=0, y=0): self.x = x self.y = y def __eq__(self, other): return self.x == other.x and self.y == other.y a = Point() b = Point(1,1) print a==b