"""_PyType_Lookup() returns a borrowed reference.This attacks the call in dictobject.c."""classA(object):passclassB(object):def__del__(self):print'hi'del D.__missing__
classD(dict):class __missing__:def__init__(self, *args):pass
d =D()
a =A()
a.cycle = a
a.other =B()del a
prev =Nonewhile1:
d[5]
prev = (prev,)