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

Function _dumps

Lib/pickle.py:1871–1877  ·  view source on GitHub ↗
(obj, protocol=None, *, fix_imports=True, buffer_callback=None)

Source from the content-addressed store, hash-verified

1869 buffer_callback=buffer_callback).dump(obj)
1870
1871def _dumps(obj, protocol=None, *, fix_imports=True, buffer_callback=None):
1872 f = io.BytesIO()
1873 _Pickler(f, protocol, fix_imports=fix_imports,
1874 buffer_callback=buffer_callback).dump(obj)
1875 res = f.getvalue()
1876 assert isinstance(res, bytes_types)
1877 return res
1878
1879def _load(file, *, fix_imports=True, encoding="ASCII", errors="strict",
1880 buffers=None):

Callers

nothing calls this directly

Calls 4

getvalueMethod · 0.95
_PicklerClass · 0.85
isinstanceFunction · 0.85
dumpMethod · 0.45

Tested by

no test coverage detected