title: How to use append with pickle in python?
body: <p>i need to append to a pickle file (as i don't have the entire dictionary with me at one go). So for doing the same I have written the following code:</p>
  
  <pre><code> import pickle
   p={}
   p[1]=2
   q={}
   q['a']=p
   p={}
   p[2]=0
   pickle.dump(q, open("save12.p","ab"))
   f={}
   f['b']=p
   pickle.dump(f,open("save12.p","ab"))
  </code></pre>
  
  <p>However, when I am loading the pickle file I don't find the value of dictionary f there?????</p>
  
  <p>Can someone please suggest as to how should I go about appending in a pickle file???</p>
  
  <p>Also databases like 'dbm' are not working for my need as i am working on windows</p>