Return a copy of this object.
(self)
| 98 | super(OrderedDict, self).__setitem__(key, value) |
| 99 | |
| 100 | def copy(self): |
| 101 | """Return a copy of this object.""" |
| 102 | # This way of initializing the copy means it works for subclasses, too. |
| 103 | obj = self.__class__(self) |
| 104 | obj.keyOrder = self.keyOrder[:] |
| 105 | return obj |
| 106 | |
| 107 | def __repr__(self): |
| 108 | """ |