On Fri, Sep 2, 2016, at 23:25, monik...@netzero.net wrote: > > By: > "reference cycles: if one object has a reference to another, and > that second object also has a reference to the first, that's a cycle." > > Is this what you mean? > a = 5 > b = a > a = b > > I just want to make sure I understand. > Thank you very much for your explanation. > Monika
No, an object that holds reference to other objects is something like a list, tuple, dict. e.g. if you had: a = [] b = [a] a.append(b) you've got two lists, and each one has a reference to the other one. These exist independent of the variables - you could del b and it would still exist in a[0]. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor