Confusing […] List in Python: What is it?
It can also appear if you have a circular structure with a list pointing to itself. Like this: >>> a = [1,2] >>> a.append(a) >>> a [1, 2, […]] >>> Since python can’t print out the structure (it would be an infinite loop) it uses the ellipsis to show that there is recursion in the … Read more