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

Function _loads

Lib/pickle.py:1915–1921  ·  view source on GitHub ↗
(s, /, *, fix_imports=True, encoding="ASCII", errors="strict",
           buffers=None)

Source from the content-addressed store, hash-verified

1913 encoding=encoding, errors=errors).load()
1914
1915def _loads(s, /, *, fix_imports=True, encoding="ASCII", errors="strict",
1916 buffers=None):
1917 if isinstance(s, str):
1918 raise TypeError("Can't load pickle from unicode string")
1919 file = io.BytesIO(s)
1920 return _Unpickler(file, fix_imports=fix_imports, buffers=buffers,
1921 encoding=encoding, errors=errors).load()
1922
1923# Use the faster _pickle if possible
1924try:

Callers

nothing calls this directly

Calls 2

_UnpicklerClass · 0.85
loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…