right to left data[ 'glist str str str str data no longer referenced the assignment causes the reference within the string to be changed to refer to the new string and to stop referring to the previous one"gammain this case there are now no references to the "gammastring