Slide 17
Slide 17 text
Serializes a Python object to a sequence of
bytes.
Optional parameters:
protocol: int denoting the protocol used
for the serialization. Currently goes from
0 (oldest) to 5 (Python 3.8)
pickle.dump(obj, file, protocol=None, *)
pickle.dumps(obj, protocol=None, *)