An exercise to help build the right mental model for Python data. The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening:

  • gedhrel@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    10 days ago

    Eh? You might suggest it’s another reason why persistent (aka immutable) data-structures have merit; but this is raw pointers.