Ray.Allen <ysj.ray at gmail.com> added the comment: How about calling gc.collect() explicitly in the loop? ---------- nosy: +ysj.ray _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue1524938> _______________________________________