"Fatal Python error: deallocating None" and urlgrabber
<p>I'm trying to fetch 1m+ pages over HTTP from single site. urlgrabber seemed like fast solution using "keep alive" connections. However, after a while my script fails without any stack trace with: "Fatal Python error: deallocating None"</p>

<p>Here is isolated python code that fails (for simplification, file:// URL is used, gives same results):</p>

<pre><code>import urlgrabber

url = "file:///some/existing/file.html"

for i in range(0, 15000):
    print i
    handle = urlgrabber.urlopen(url, timeout = 1)
    # do something useful
    handle.close()
</code></pre>

<p>It fails after ~3231 cycles.</p>

<p>What I am doing wrong?</p>
