Oct-18-2018, 01:54 AM
That's the default text representation of objects. You get that for any object you create unless you override the __repr__ method. However, the list actually has the addresses (or rather, pointers to those addresses). Typical user created classes (that is, sub-classes of object) are mutable. So they are passed around by reference, not value. So say you have lyst1 and lyst2, and the Movie object for The Outlaw Josie Wales is in both lists. If you change the one in lyst1, that will change the one in lyst2, since both lists just have references to the same object.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures