title: Python how to release the memory for class object after processing it?
body: <p>I use <strong>None keyword to delete a class object.</strong></p>
  
  <pre><code> class demo:
     class members
  
   obj= demo()
   some processing
   obj=None
  </code></pre>
  
  <p>By using <strong>None</strong>,will the memory be released?</p>
  
  <p>I found that <strong>del</strong> can also be used to delete a class object.Or I should use </p>
  
  <pre><code>   del obj
  </code></pre>
  
  <p>to release the memory?</p>
  
  <p>What is the difference between using <strong>del and None</strong> in deleting a class object and <strong>releasing the memory or invoking garbage collection</strong>?</p>