Python 2.0
Stidolph, David
stidolph at origin.ea.com
Mon May 31 21:37:30 EDT 1999
>OK, I'll try to propose something constructive. Maybe we need an object
>protocol, that would enumerate
>all references held by an object ? Writing a portable GC would be then
much
>easier.
Sounds good to me for debugging. A call that could return a list of
everything that holds a reference to an object - that would be cool!
list = GetReferences(object)
print 'List of referencest to',object
for item in list:
print 'item:',item
Anybody know of a current way to do this?
More information about the Python-list
mailing list