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

Method dumps

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

Source from the content-addressed store, hash-verified

4616 def test_dump_load_oob_buffers(self):
4617 # Test out-of-band buffers (PEP 574) with top-level dump() and load()
4618 def dumps(obj, **kwargs):
4619 f = io.BytesIO()
4620 self.dump(obj, f, **kwargs)
4621 return f.getvalue()
4622
4623 def loads(data, **kwargs):
4624 f = io.BytesIO(data)

Calls 2

getvalueMethod · 0.95
dumpMethod · 0.45

Tested by

no test coverage detected