class C(list): def __init__(self, alist): self[:] = alist for i in range(1, 100): x = C([]) for j in range(i): x = C([x]) print i del x