(self, o)
return isinstance(o, GeometryEntity) and (self.center == o.center and
                                                  self.hradius == o.hradius and
                                                  self.vradius == o.vradius)
Is the other GeometryEntity the same as this ellipse?
Is the other GeometryEntity the same as this ellipse?
Is the other GeometryEntity the same as this ellipse?
def __eq__(self, o):
        """Is the other GeometryEntity the same as this ellipse?"""
        return isinstance(o, GeometryEntity) and (self.center == o.center and
                                                  self.hradius == o.hradius and
                                                  self.vradius == o.vradius)
def __eq__ ( self , o ) : return isinstance ( o , GeometryEntity ) and ( self . center == o . center and self . hradius == o . hradius and self . vradius == o . vradius )