(self, other)
return Point.is_collinear(self.p1, self.p2, other.p1, other.p2)
Return True if other is equal to this Line, or False otherwise.
Return True if other is equal to this Line, or False otherwise.
Return True if other is equal to this Line or False otherwise .
def __eq__(self, other):
        """Return True if other is equal to this Line, or False otherwise."""
        if not isinstance(other, Line):
            return False
        return Point.is_collinear(self.p1, self.p2, other.p1, other.p2)
def __eq__ ( self , other ) : if not isinstance ( other , Line ) : return False return Point . is_collinear ( self . p1 , self . p2 , other . p1 , other . p2 )