I am trying to dump many dictionaries into the same pickle file. The dictionaries share the root key.
import pickle
a = {'k':'b'}
b = {'k':'c'}
f = open('tmp.pickle','ab')
pickle.dump(a,f)
pickle.dump(b,f)
f.close()
pickle.load(open('tmp.pickle','rb'))
Result:
{'k': 'b'}
I would expect:
{'k':{'a','b'}}