First time here? Check out the FAQ!
answered 12 years ago
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