MCPcopy Index your code
hub / github.com/RustPython/RustPython / copy

Method copy

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

Source from the content-addressed store, hash-verified

5513 self.dumps = dumps
5514 self.loads = loads
5515 def copy(self, obj):
5516 return self.loads(self.dumps(obj, self.proto))
5517 def __repr__(self):
5518 # We try to be as descriptive as possible here since this is
5519 # 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