[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn.collab.net/viewcvs-dev

From: Gustavo Niemeyer <niemeyer_at_conectiva.com>
Date: 2002-10-16 15:45:29 CEST

> GStein (or other Python hackers): we're shutting down the repository
> in the SubversionRepository object's __del__ method. Is that
> guaranteed to get called for all exit routes from the program, or do
> things like system.exit(0) bypass all those nice destructors?

Are you sure you don't have a loop somewhere in your object instance?
This is the most common error. __del__ will never be called if it
doesn't get garbage collected.

To check that, if it's too much code to debug, you can print gc.garbage
to a debug file after running gc.collect() and just before exiting the
program.

-- 
Gustavo Niemeyer
[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 16 15:46:14 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.