First page Back Continue Last page Overview Graphics

de“pickle“

A file with a pickled object can

be read back (deserialised)

with pickle.load.

It recognizes automatically the

protocol which had been used

when saving the file.

>>> f = open("data.pkl","br") # Python3

>>> # f = open("data.pkl") # Python2

>>> data = pickle.load(f)

>>> print(data)

(1.4, 42)

>>>