def __eq__(self, obj):
        """Simple comparsion of objects."""
        return self.__class__.__name__ == obj.__class__.__name__ \
               and self._getID() == obj._getID()
def __eq__ ( self , obj ) : return self . __class__ . __name__ == obj . __class__ . __name__ and self . _getID ( ) == obj . _getID ( )
Simple comparsion of objects.