Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Python only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Python
get objects referencing another one
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Olivier Feys
#1
get objects referencing another one
Feb 5 '07, 04:35 PM
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
Diez B. Roggisch
#2
Feb 5 '07, 05:45 PM
Re: get objects referencing another one
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
Comment
Post
Cancel
Bruno Desthuilliers
#3
Feb 5 '07, 07:55 PM
Re: get objects referencing another one
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:
weakref — Weak references
http://docs.python.org/lib/module-weakref.html
Source code: Lib/weakref.py The weakref module allows the Python programmer to create weak references to objects. In the following, the term referent means the object which is referred to by a weak...
HTH
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment