I was doing some experiments following this feature: Hidden features of Python
The used code is:
def f(x = []):
    x.append(x)
    return x
which output is:
>>> f()
[[...]]
I would like to understand what do [...] mean and why it an infinite nested list is produced.
 
     
     
    