(self, other)
| 120 | return d |
| 121 | |
| 122 | def __eq__(self, other): |
| 123 | if isinstance(other, OrderedDict): |
| 124 | if len(self) != len(other): |
| 125 | return False |
| 126 | for p, q in zip(self.items(), other.items()): |
| 127 | if p != q: |
| 128 | return False |
| 129 | return True |
| 130 | return dict.__eq__(self, other) |
| 131 | |
| 132 | def __ne__(self, other): |
| 133 | return not self == other |