Clarification on Immutability please

Cameron Simpson cs at cskk.id.au
Tue Jan 21 17:19:17 EST 2020


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>


More information about the Python-list mailing list