marshal.load()

marshal.load(file)

Read one value from the open file and return it. If no valid value is read (e.g. because the data has a different Python version’s incompatible marshal format), raise EOFError, ValueError or TypeError. The file must be an open file object opened in binary mode ('rb' or 'r+b').

Note

If an object containing an unsupported type was marshalled with dump(), load() will substitute None for the unmarshallable type.

doc_python
2016-10-07 17:36:57
Comments
Leave a Comment

Please login to continue.