MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / copy

Method copy

markdown/odict.py:100–105  ·  view source on GitHub ↗

Return a copy of this object.

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 1

__getstate__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected