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

Method dumps

Lib/test/pickletester.py:4973–4976  ·  view source on GitHub ↗
(obj, **kwargs)

Source from the content-addressed store, hash-verified

4971 def test_dump_load_oob_buffers(self):
4972 # Test out-of-band buffers (PEP 574) with top-level dump() and load()
4973 def dumps(obj, **kwargs):
4974 f = io.BytesIO()
4975 self.dump(obj, f, **kwargs)
4976 return f.getvalue()
4977
4978 def loads(data, **kwargs):
4979 f = io.BytesIO(data)

Calls 2

getvalueMethod · 0.95
dumpMethod · 0.45

Tested by

no test coverage detected