get objects referencing another one

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Mon Feb 5 15:13:55 EST 2007


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



More information about the Python-list mailing list