title: How does garbage collection in Python work with class methods?
body: <pre><code>class example:
  
      def exampleMethod(self):
          aVar = 'some string'
          return aVar
  </code></pre>
  
  <p>In this example, how does garbage collection work after each call to example.exampleMethod()? Will aVar be deallocated once the method returns?</p>