Augmented Assignment (was: Re: PEP scepticism)

Courageous jkraska1 at san.rr.com
Sun Jul 1 18:43:20 CEST 2001


On Sat, 30 Jun 2001 22:05:46 -0700, Paul Prescod <paulp at ActiveState.com> wrote:

>Courageous 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,)
>>> tpl1
(1, 2, 3, 4)
>>> 

The tpl *appears* to be mutable,  but it's not.

C//





More information about the Python-list mailing list