First page Back Continue Last page Overview Graphics

A Simple Example

>>> import pickle

>>> data = (1.4,42)

>>> output = open('data.pkl', 'bw') # Python3

>>> #output = open('data.pkl', 'w') # Python2

>>> pickle.dump(data, output)

>>> output.close()

The content of the file data.pkl looks like this in Python2:

(F1.3999999999999999

I42

tp0

.

Not readable in Python3 per Default!