Python Persistence
suggest changeSyntax
- pickle.dump(obj, file, protocol=None, *, fix_imports=True)
- pickle.load(file, *, fix_imports=True, encoding=“ASCII”, errors=“strict”)
Parameters
Parameter | Details |
——— | —–– |obj | pickled representation of obj to the open file object file |protocol | an integer, tells the pickler to use the given protocol,0
-ASCII, 1
- old binary format |file | The file argument must have a write() method wb
for dump method and for loading read() method rb
|
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents