Список увеличивается таким кодом :
def Enlarge(table): table[:] = Init(len(table[2])*2, table[2])[:] return table
table[:] =
Если использовать просто
table = Init(len(table[2])*2, table[2])[:]
def Enlarge(table): table[:] = Init(len(table[2])*2, table[2])[:] return table
table[:] =
table = Init(len(table[2])*2, table[2])[:]
>>> l = [] >>> id(l) 4365312264 >>> id(l[:]) 4355936968