MCPcopy Index your code
hub / github.com/python/cpython / copy

Method copy

Lib/test/test_descr.py:5752–5753  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

5750 self.dumps = dumps
5751 self.loads = loads
5752 def copy(self, obj):
5753 return self.loads(self.dumps(obj, self.proto))
5754 def __repr__(self):
5755 # We try to be as descriptive as possible here since this is
5756 # the string which we will allow us to tell the pickle

Callers 4

test_copy_setstateMethod · 0.45
__getstate__Method · 0.45
test_pickle_slotsMethod · 0.45
test_reduce_copyingMethod · 0.45

Calls 2

loadsMethod · 0.45
dumpsMethod · 0.45

Tested by

no test coverage detected