Message: 5 Date: Wed, 7 May 2008 16:18:23 -0400 From: "Michael Langford" <[EMAIL PROTECTED]> Subject: Re: [Tutor] Memory Leak? To: "Keith Suda-Cederquist" <[EMAIL PROTECTED]> Cc: Python Tutor List <tutor@python.org> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1"
>>You can always make a subclass of the classes you're thinking aren't being >>garbage collected and put a print statement in their __del__ functions to >>show you when they are. That will show you if/which objects aren't being >>deleted. Is this reliable or will this just confuse the issue? Python in a Nutshell states "While gc itself can automatically fix many leaks (as long as you avoid defining __del__ in your classes, since the existence of __del__ can block cyclic garbage collection), your program runs faster if it avoids creating cyclic garbage in the first place
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor