MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _dumps

Function _dumps

tools/python-3.11.9-amd64/Lib/pickle.py:1754–1760  ·  view source on GitHub ↗
(obj, protocol=None, *, fix_imports=True, buffer_callback=None)

Source from the content-addressed store, hash-verified

1752 buffer_callback=buffer_callback).dump(obj)
1753
1754def _dumps(obj, protocol=None, *, fix_imports=True, buffer_callback=None):
1755 f = io.BytesIO()
1756 _Pickler(f, protocol, fix_imports=fix_imports,
1757 buffer_callback=buffer_callback).dump(obj)
1758 res = f.getvalue()
1759 assert isinstance(res, bytes_types)
1760 return res
1761
1762def _load(file, *, fix_imports=True, encoding="ASCII", errors="strict",
1763 buffers=None):

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.95
_PicklerClass · 0.85
dumpMethod · 0.45

Tested by

no test coverage detected