Python Persistence

Download python eBook

Syntax

  • pickle.dump(obj, file, protocol=None, *, fix_imports=True)

  • pickle.load(file, *, fix_imports=True, encoding="ASCII", errors="strict")

Parameters

ParameterDetails
objpickled representation of obj to the open file object file
protocolan integer, tells the pickler to use the given protocol,0-ASCII, 1- old binary format
fileThe file argument must have a write() method wb for dump method and for loading read() method rb

Related Examples

Stats

52 Contributors: 2
Wednesday, November 9, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook