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

Function _dumps

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

Source from the content-addressed store, hash-verified

1900 buffer_callback=buffer_callback).dump(obj)
1901
1902def _dumps(obj, protocol=None, *, fix_imports=True, buffer_callback=None):
1903 f = io.BytesIO()
1904 _Pickler(f, protocol, fix_imports=fix_imports,
1905 buffer_callback=buffer_callback).dump(obj)
1906 res = f.getvalue()
1907 assert isinstance(res, bytes_types)
1908 return res
1909
1910def _load(file, *, fix_imports=True, encoding="ASCII", errors="strict",
1911 buffers=None):

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.95
_PicklerClass · 0.85
dumpMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…