On Sat, Mar 8, 2014 at 9:06 PM, Victor Stinner <victor.stin...@gmail.com> wrote: > And MyObject is not destroyed which is an obvious memory leak, beause > there is no more explicit reference to it.
And it doesn't seem to be getting put into gc.garbage, either, which is probably worth mentioning. You have __del__ in there, so it's entirely possible it would get dropped into the garbage rather than actually disposed of, but I added a print(gc.garbage) after gc.collect() and it showed empty. ChrisA _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com