Py.Marshalread_object_from_file f reads one value from f and returns it. Wrapper for PyMarshal_ReadObjectFromFile
Equivalent to read_object_from_file.
read_last_object_from_file f reads a value from f and returns it. That value should be the only value remaining to be read from f before EOF. Wrapper for PyMarshal_ReadLastObjectFromFile
val read_object_from_string : string -> int -> Object.tread_object_from_string s len reads a value from the len first bytes of s. Wrapper for PyMarshal_ReadObjectFromString
val loads : string -> Object.tPy.Marshal.loads s is equivalent to Py.Marshal.read_object_from_string s (String.length s).
write_object_to_file value file version writes the object value to file. version indicates the file format (use version to get the current version). Wrapper for PyMarshal_WriteObjectToFile
Py.Marshal.dump ?version value file is equivalent to Py.Marshal.write_object_to_file value file version. By default, the version returned by version is used.
write_object_to_file value file version returns the Python string representing the object value. version indicates the format (use version to get the current version). Wrapper for PyMarshal_WriteObjectToString