In Python you can append a list to itself and it will accept the assignment.
>>> l = [0,1]
>>> l.append(l)
>>> l
[0, 1, [...]]
>>> l[-1]
[0, 1, [...]]
My question is why?
Python allows this rather than throwing an error, is that because there's a potential use for it or is it just because it wasn't seen as necessary to explicitly forbid this behaviour?
["Alice", ["Carol"], ["Bob", [...]]]
.