(self, other)
| 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 |