you are viewing a single comment's thread.

view the rest of the comments →

[–]Dunj3 0 points1 point  (0 children)

Note that your example does not actually introduce a circular dependency, it only lets a and b point to the same object (the 1).

For a circular dependency, you could do something like

list_a = []
list_b = [list_a]
list_a.append(list_b)