title: how to create uncollectable garbage in python?
body: <p>I have a large long-running server, and, over weeks the memory usage steadily climbs.</p>
  
  <p>Generally, as pointed out below, its unlikely that leaks are my problem; however, I have not got a lot to go on so I want to see if there are any leaks.</p>
  
  <p>Getting at console output is tricky so I'm not running with <code>gc.set_debug()</code>.  This is not a big problem though, as I have easily added an API to get it to run <code>gc.collect()</code> and then iterate through <code>gc.garbage</code> and send the results back out to me over HTTP.</p>
  
  <p>My problem is that running it locally for a short time my <code>gc.garbage</code> is always empty.  I can't test my bit of code that lists the leaks before I deploy it.</p>
  
  <p>Is there a trivial recipe for creating an uncollectable bit of garbage so I can test my code that lists the garbage?</p>