Currently the output of below append cannot be used for practical purpose, This jira is to get the expectation for a case in append.
>>> a=[1,2]
>>> a.append(a)
>>> a
[1, 2, [...]]
>>>
Currently the output of below append cannot be used for practical purpose, This jira is to get the expectation for a case in append.
>>> a=[1,2]
>>> a.append(a)
>>> a
[1, 2, [...]]
>>>
The third element is the entire list (i.e. a[2] is a, or id(a[2]) == id(a)). Because a contains itself, printing it would go on infinitely (a[2][2][2][2][2]...[2] == a), so the string conversion just gives you the "[...]" output.
The answer by Craig Meier explains why you're getting the output you're seeing. To eliminate the problem, make a copy of the list when you append it. A slice is the easiest way of copying a list.
>>> a=[1,2]
>>> a.append(a[:])
>>> a
[1, 2, [1, 2]]