[Xapian-discuss] Twisted + Xapian WriteableDatabase leaves
db_lock file on exit.
James Aylett
james-xapian at tartarus.org
Wed May 3 15:56:08 BST 2006
On Wed, May 03, 2006 at 04:43:38PM +0200, Terry Jones wrote:
> I don't know python very well. From what I read (google(__del__ not being
> called) gets plenty of hits), there is no guarantee that __del__ will ever
> be called and, it seems, even less guarantee if the interpreter itself is
> about to go away. Maybe someone with more knowledge of python can clarify
> this.
I've certainly seen this in Python, yes. From the language reference:
> It is not guaranteed that __del__() methods are called for objects
> that still exist when the interpreter exits.
Note also that if you have circular references, Python-level __del__()
methods will prevent the cycle detector from garbage collecting those
objects.
J
--
/--------------------------------------------------------------------------\
James Aylett xapian.org
james at tartarus.org uncertaintydivision.org
More information about the Xapian-discuss
mailing list