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

Method custom_load_dump

Lib/test/pickletester.py:5412–5413  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

5410
5411 def _test_dispatch_table(self, dumps, dispatch_table):
5412 def custom_load_dump(obj):
5413 return pickle.loads(dumps(obj, 0))
5414
5415 def default_load_dump(obj):
5416 return pickle.loads(pickle.dumps(obj, 0))

Callers

nothing calls this directly

Calls 2

dumpsFunction · 0.50
loadsMethod · 0.45

Tested by

no test coverage detected