When is it a pointer (aka reference) - when is it a copy?

Fredrik Lundh fredrik at pythonware.com
Thu Sep 14 09:24:45 CEST 2006

Dennis Lee Bieber wrote:

> 	References to lists, dictionaries, and class instances (which are,
> in a way, just an expanded dictionary) are "mutable"

careful: it's not the *reference* that's mutable, it's the object.

the *only* difference between mutable and immutable objects is that
the latter don't provide any methods that you could use to modify their 

plain assignment (name=) *never* modifies objects, and *never* copies 

this article


may be useful for those who haven't already seen it.


More information about the Python-list mailing list