(self, other)
return self.to_dict() == other
Comparison to another SON is order-sensitive while comparison to a
        regular dictionary is order-insensitive.
Comparison to another SON is order-sensitive while comparison to a
        regular dictionary is order-insensitive.
Comparison to another SON is order - sensitive while comparison to a regular dictionary is order - insensitive .
def __eq__(self, other):
        """Comparison to another SON is order-sensitive while comparison to a
        regular dictionary is order-insensitive.
        """
        if isinstance(other, SON):
            return len(self) == len(other) and self.items() == other.items()
        return self.to_dict() == other
def __eq__ ( self , other ) : if isinstance ( other , SON ) : return len ( self ) == len ( other ) and self . items ( ) == other . items ( ) return self . to_dict ( ) == other