On Tue, 15 Sep 2015 04:02 am, Random832 wrote: > The point is that with immutable objects no-one cares if they are three > objects with the same value, or three references to the same object.
Well, you might care... a = (1,)*(10**12) b = (1,)*(10**12) c = (1,)*(10**12) Each of those tuples would require a rather lot of memory. The difference between "a lot" and "three times a lot" could be significant. But other than memory efficiency, yes, you are correct, there's no real reason to care about the difference between the two cases. -- Steven -- https://mail.python.org/mailman/listinfo/python-list