title: Python - Find current objects in memory
body: <p>Is there a way to find the objects that are currently in memory including their names, where they are located and module names etc?</p>
  <p>My process Python.exe before the main() method in Task Manager has a memory footprint of 15MB.</p>
  <p>After the main method completes its first iteration, the process Python.exe memory size is 250MB.</p>
  <p>I want to understand which objects are still in memory so that I can delete them</p>
  <pre class="lang-py prettyprint-override"><code>while True:
   # print current object details
   main() 
   # print current object details
  </code></pre>