def __eq__(self, other):
    'MObject supports this operator explicitly'
    try:
        return (self._mobject == other._mobject)
    except AttributeError:
        return (str(self) == str(other))
MObject supports this operator explicitly
def __eq__(self, other):
    
    try:
        return (self._mobject == other._mobject)
    except AttributeError:
        return (str(self) == str(other))