Python 2.0

Stidolph, David stidolph at
Tue Jun 1 03:37:30 CEST 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

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