| ▲ | js2 2 hours ago | |
Basically, but not quite. :-) The original result for b is:
vs your version:
The equivalent statements to the original chained assignment are:
¹: Using 1 works because the integers -5 thru 256 are interned in cpython. Otherwise, or if you don't want to rely on an implementation detail, to be truly equivalent (i.e. `id(b[1][0]) == id(a)`), it's this: | ||