Best afterValues and names

Aliasing: two names, one list

Assigning one list to another name does not make a copy — both names point at the same list object. Change it through one name and the 'other' changes too. The matching reference ids in the state pane make the shared identity literal. Watch the backup get corrupted.

Make a backup of the scores list, then add 30 to the original — the backup should keep the first two scores.

Assignment doesn't copy a list execution-derived · CPython
variables
state after line 1 runs
variablevalue
scores[10,20]
step 1 / 3

Click a line, drag the slider, or use the keys.

What you are looking at

Watch backup when only scores is touched — and watch the ref ids.

Every state you see came from running the program under CPython's tracer at build time — see how GlassBox stays honest.