MCPcopy Create free account
hub / github.com/clips/pattern / __eq__

Method __eq__

pattern/web/json/ordered_dict.py:112–116  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

110 return d
111
112 def __eq__(self, other):
113 if isinstance(other, OrderedDict):
114 return len(self)==len(other) and \
115 all(p==q for p, q in zip(self.items(), other.items()))
116 return dict.__eq__(self, other)
117
118 def __ne__(self, other):
119 return not self == other

Callers

nothing calls this directly

Calls 4

lenFunction · 0.85
zipFunction · 0.85
allFunction · 0.70
itemsMethod · 0.45

Tested by

no test coverage detected