First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 12 years ago

Nathann gravatar image

Would it help if you were to put this at the head of your file

import gc

Then if you were to put such a line after every 1000th append statement ?

gc.collect()

It is meant to call Python's garbage collector explicitely.

Nathann