Question about references/copies
Terry Reedy
tjreedy at udel.edu
Sat Aug 28 05:44:19 EDT 2004
"Henning Kage" <c0dec at gmx.de> wrote in message
news:pan.2004.08.28.07.52.35.422774 at gmx.de...
> I'm using Python only for some months now and I'm wondering, whether such
> assignments as above are creating bitwise copies of an object or just
> recieve a reference. That means I wanted to know, wheter Python in
> general
> differs between references and copies:
Better to think of Python this way: it has objects and bindings of objects
to one or more targets (names and slots of composite objects). Binding
statements (target = expression) always and only assign targets to objects.
Terry J. Reedy
More information about the Python-list
mailing list