I use cPickle to pickle a list of integers, using HIGHEST_PROTOCOL,
cPickle.dump(l, f, HIGHEST_PROTOCOL)
When I try to unpickle this using the
If you are on windows, make sure you
open(filename, 'wb') # for writing open(filename, 'rb') # for reading