4 ms·
I agree. Labels better capture how Python works, because the assignmest statement causes another variable to point to the same object instead of copying the obj
by cabalamat 17y ago
I agree. Labels better capture how Python works, because the assignmest statement causes another variable to point to the same object instead of copying the object, e.g.:
>>> a = [1,2]
>>> b = a
>>> a[0]='h'
>>> b
['h', 2]