469,366 Members | 1,822 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

get objects referencing another one

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 ?

thanks
Feb 5 '07 #1
2 1029
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
Feb 5 '07 #2
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
Feb 5 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.