turns out that python's list creation shorthand for duplicating elements (e.g. x = [obj] * n) does not make the instances of obj distinct in memory! TIL.
turns out that python's list creation shorthand for duplicating elements (e.g. x = [obj] * n) does not make the instances of obj distinct in memory! TIL.