cpython/Lib/test/dtracedata/gc.py

14 lines
155 B
Python

import gc
def start():
gc.collect(0)
gc.collect(1)
gc.collect(2)
l = []
l.append(l)
del l
gc.collect(2)
gc.collect()
start()