I have a program where I basically adjust the probability of certain things happening based on what is already known. My file of data is already saved as a pickle
pickle
How about this?
import cPickle as pickle p = pickle.Pickler(open("temp.p","wb")) p.fast = True p.dump(d) # d could be your dictionary or any file