examples/advanced/destructor_skipped.py
class Destruct(object):
    def __init__(self):
        print('__init__')
    def __del__(self):
        print('__del__')
 
def main():
    a = Destruct()
    b = Destruct()
    a.partner = b
    b.partner = a
    print('in main - after')

main()
print('after main')

examples/advanced/destructor_skipped.out
__init__
__init__
in main - after
after main