I have looked in the official documentation for python, but i cannot seem to find what a reference cycle is. Could anyone please clarify what it is for me, as i am trying to
This is a reference cycle:
l = [] l.append(l)
The first element of l, i.e. l[0], is now a cyclic reference to l itself.
l
l[0]