script uses up all memory

Marko Rauhamaa marko at pacujo.net
Thu Mar 6 17:34:39 EST 2014


Chris Angelico <rosuav at gmail.com>:

> Not all problems need to be solved perfectly :) But at very least, I
> would put a comment against your collect() call explaining what
> happens: that self.tools is involved in a refloop. Most Python code
> shouldn't have to call gc.collect(), so it's worth explaining why you
> are here.

Refloops also are nothing to be avoided. Let GC do its job and forget
about it.


Marko



More information about the Python-list mailing list