class test:
attr = 1
def __delattr__(self, item):
object.__delattr__(self, item)
ins = test()
print(ins.attr)
del ins.attr
print(ins.attr)
2 0 LOAD_FAST 0 (foo)
3 DELETE_ATTR 0 (bar)