Creating Long Lists

Kelson Zawack zawackkfb at gis.a-star.edu.sg
Tue Feb 22 04:40:06 EST 2011


The answer it turns out is the garbage collector.  When I disable the
garbage collector before the loop that loads the data into the list
and then enable it after the loop the program runs without issue.
This raises a question though, can the logic of the garbage collector
be changed so that it is not triggered in instances like this were you
really do want to put lots and lots of stuff in memory.  Turning on
and off the garbage collector is not a big deal, but it would
obviously be nicer not to have to.



More information about the Python-list mailing list