> Python doesn't have memory leaks.<br><br>Yeah, interesting bit of trivia: python is the world's only non-trivial program that's totally free of bugs. Pretty exciting! But seriously, python 2.4, at least, does have some pretty trivially exposed memory leaks when working with strings. A simple example is this:<br>
<br>>>> letters = [chr(c) for c in range(ord('a'), ord('z'))+range(ord('A'), ord('Z'))]<br>>>> ary = []<br>>>> for a in letters:<br>... for b in letters:<br>... for c in letters:<br>
... for d in letters:<br>... ary.append(a+b+c+d)<br>... <br>>>> del(ary)<br>>>> import gc<br>>>> gc.collect()<br>0<br><br>The VM's memory usage will never drop from its high point of (on my computer) ~200MB. Since you're using GIS data, this could be what you're running into. I haven't been able to upgrade my systems to python 2.5, but from my tests, that version did not have that memory leak. Nobody seems interesting in backporting fixes from 2.5 to 2.4, so you're probably on your own in that case as well, if upgrading to python 2.5 isn't an option or isn't applicable to your situation.<br>
<br>