git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clarification on Immutability please


On 22Jan2020 09:15, Cameron Simpson <cs at cskk.id.au> wrote:
>It doesn't say anything about the contents of the internal objects:
>
>   >>> mytup = (1, [2, 3], (4, 5))
[...]
>   >>> mytupl[1] = [7, 8]
>   Traceback (most recent call last):
>     File "<stdin>", line 1, in <module>
>   NameError: name 'mytupl' is not defined

Please ignore that snippet, typing error.

Sorry,
Cameron Simpson <cs at cskk.id.au>