space effecient representations

Consultant (amrit@xvt.com)
Fri, 3 Dec 1993 13:16:53 -0700 (MST)

>I understand that in Python, assignment is usually name binding -
>except in the case of assigning a part of a mutable object. i.e.

When you assign >>>any<<< object in python to another object, then
a reference is copied. So the statement

a = b

where b is a string, creates another reference to the string via the
assignment, so that a and b share the same space.

Since strings and tuples are immutable objects, they behave the same as
if a new physical copy is made.