Unexpected result for list operator "+="
Thomas Wouters
thomas at xs4all.net
Thu Jan 4 11:47:58 EST 2001
On Thu, Jan 04, 2001 at 11:05:52AM +0200, Erno Kuusela wrote:
> In article <mfW46.227356$U46.7026522 at news1.sttls1.wa.home.com>, "Greg
> Jorgensen" <gregj at pobox.com> writes: A
>
> | Assignment of immutable objects (numbers, strings, tuples)
> | essentially makes a copy of the object. Assignment of mutable
> | objects (lists, dictionaries) creates a new reference to the
> | original object.
> actually (non-augmented) assignment is always just about references, even
> with immutable objects.
actually *augmented* assignment is, too. *everything* is about references :)
--
Thomas Wouters <thomas at xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
More information about the Python-list
mailing list