'Legacy (pre-PEP 442) finalizer, mapped to a tp_del slot.'

def __tp_del__(self):

    try:
        if (not self._cleaning):
            self.tp_del_calls.append(id(self))
            self.check_sanity()
            self.side_effect()
    except Exception as e:
        self.errors.append(e)
