Decrementing a reference counter...

Olivier Deckmyn olivier.deckmyn at mail.dotcom.fr
Sun Oct 10 10:10:50 EDT 1999


Does anyone know how to decrement the reference counter of a python object,
in python ( not in a C module ; I know how to do that)?

ex :

def toto(self, titi):
    self.myTiti=titi
    dec_refcount(titi) # To avoid circular reference


Of course, I wonder about the existence and syntax of a "dec_refcount"
function.
I know it is dangerous ; but it is the case where "I know what I am doing
:)"


Please help !






More information about the Python-list mailing list