Introduction

If a collection object contains a reference to itself, it's called a cyclic object.

Python prints a [...] whenever it detects a cycle in the object:

Demo

L = ['grail']                # Append reference to same object 
L.append(L)                  # Generates cycle in object: [...] 
print( L )

Result

Related Topic