Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Py.Marshal
Sourceread_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
read_object_from_string s len
reads a value from the len
first bytes of s
. Wrapper for PyMarshal_ReadObjectFromString
Py.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
Py.Marshal.dumps ?version value
is equivalent to Py.String.to_string (Py.Marshal.write_object_to_string value version)
. By default, the version returned by version
is used.
Returns the current file format version number.