Message 276775 - Python tracker (original) (raw)
Okay, I've modified the title to match what I've written below.
I've just run some further tests on this problem. The attached archive contains code samples and the output generated (both with and without garbage collection).
As you can see, the memory stays constant in the first case. In the second, the presence of the loop is probably what throws a spanner in the works. Garbage collection seems to make the outcome slightly worse (in the second case).
The situation isn't as bad as I first reported, but the memory does nonetheless keep increasing in the second case (which it probably shouldn't).