PyDocs

Nav

Data Persistence

loads

marshal

function
  • loads(bytes, /, *, allow_code=True)
Convert the bytes-like object to a value.

  allow_code
    Allow to load code objects.

If no valid value is found, raise EOFError, ValueError or TypeError.
Extra bytes in the input are ignored.
Changed in 3.10, 3.13
  • 3.10: This call used to raise a code.__new__ audit event for each code object. Now it raises a single marshal.loads event for the entire load operation.
  • 3.13: Added the allow_code parameter.
0 Examples
No examples for marshal/loads.
See Also
No see-alsos for marshal/loads
0 Notes
No notes for loads