[ZODB-Dev] Investigating a Zope reference leak... tracking object creation

Dieter Maurer dieter at handshake.de
Mon Jan 31 13:55:29 EST 2005


Ben Last (ZODBDev) wrote at 2005-1-31 10:18 +0000:
> ...
> What I was after (and still am) is a way to track the creation of *instances* of the Python class.

They can be created in three ways:

 * in the normal way (when the constructor for the class is called)

 * when the ZODB instantiates a persistent reference with
   the class info.

   This happens in the method
   "ZODB.Connection.Connection._persistent_load"

 * when the ZODB directly looks up an oid.
   This happens in the method
   "ZODB.Connection.Connection.__getitem__".

-- 
Dieter


More information about the ZODB-Dev mailing list