Re: get objects referencing another one

2007-02-05 Thread Gabriel Genellina
En Mon, 05 Feb 2007 12:59:23 -0300, Olivier Feys <[EMAIL PROTECTED]> escribió: > I'm working on a tree and I have refcounting problems. > Is it possible from an object, to get the list of objects referencing it > ? Try gc.get_referrers -- Gabriel Genellina -- http://mail.python.org/mailma

Re: get objects referencing another one

2007-02-05 Thread Bruno Desthuilliers
Olivier Feys a écrit : > I'm working on a tree and I have refcounting problems. > Is it possible from an object, to get the list of objects referencing it ? Another solution may be to use weak references: http://docs.python.org/lib/module-weakref.html HTH -- http://mail.python.org/mailman/listin

Re: get objects referencing another one

2007-02-05 Thread Diez B. Roggisch
Olivier Feys wrote: > I'm working on a tree and I have refcounting problems. > Is it possible from an object, to get the list of objects referencing it ? The gc-module might help, but it is somewhat overwhelming. Diez -- http://mail.python.org/mailman/listinfo/python-list