Oh, and sets too.
Example with shallow list copy and an embedded mutable object (another list):
>>> a = [1, 2, [3, 4]]
>>> b = a.copy()
>>> b
[1, 2, [3, 4]]
>>> b[0] = 5
>>> b
[5, 2, [3, 4]]
>>> a
[1, 2, [3, 4]]
>>> b[2][0] = 8
>>> a
[1, 2, [8, 4]]
>>> b
[5, 2, [8, 4]]
#mutability #copy #whotouchedmy
Something I've spent a lot of time thinking about, being fascinated by in recent years, is the idea of "narrative mutability", the infinite tweaks that can be made to a story, to a piece of art. The multiverse of possibilities, the perpetual reboot, the cover version, the remix. Though, with that more than just the lazy "retelling of a story that you weren't interested in but are suddenly supposed to be interested in now." #writing #reading #art #mutability
to that end:
https://sanvtto.bandcamp.com/track/nina-simone-felling-good-sanvtto-remix
#writing #reading #art #mutability