Augmented Assignment (was: Re: PEP scepticism)
jkraska1 at san.rr.com
Sun Jul 1 12:43:20 EDT 2001
On Sat, 30 Jun 2001 22:05:46 -0700, Paul Prescod <paulp at ActiveState.com> wrote:
>It's funny how this discussion just goes around and around in circles.
BTW, the problem you are talking about was in Python before augmented
assignment came around:
>>> tpl1 = (1,2,)
>>> tpl1 = tpl1+(3,4,)
(1, 2, 3, 4)
The tpl *appears* to be mutable, but it's not.
More information about the Python-list