def __eq__(self, other):
if isinstance(other, OrderedDict):<EOL><INDENT>return len(self)==len(other) and self.items() == other.items()<EOL><DEDENT>return dict.__eq__(self, other)<EOL>
od.__eq__(y) <==> od==y.  Comparison to another OD is order-sensitive
        while comparison to a regular mapping is order-insensitive.