title: Updating Python Pickle Object
body: <p>I am doing a project in Machine Learning and for that I am using the <code>pickle</code> module of Python.</p>
  
  <p>Basically, I am parsing through a huge data set which is not possible in one execution that is why I need to save the classifier object and update it in the next execution.</p>
  
  <p>So my question is, when I run the program again with the new data set then will the already created pickle object be modified (or updated). If not then how can I update the same pickle object every time I run the program. </p>
  
  <pre><code>save_classifier = open("naivebayes.pickle","wb")
  pickle.dump(classifier,save_classifier)
  save_classifier.close()
  </code></pre>