# eq.py # Walker M. White (wmw2) # October 19, 2012 """Module showing off the weird things with __eq__""" class A(object): def __eq__(self,other): """Returns: True if e an Executive, with the same attributes as self. False otherwise.""" print 'Using A __eq__' return False class B(A): def __eq__(self,other): """Returns: True if e an Executive, with the same attributes as self. False otherwise.""" print 'Using B __eq__' return False class C(A): def __eq__(self,other): """Returns: True if e an Executive, with the same attributes as self. False otherwise.""" print 'Using C __eq__' return False