Have you ever faced this behavior in assigning values to two (or more) different dict variables using the same list of values?
m1={}
m2={}
token=['a','b','c']
m1['12345']=token
m2['4422']=token
#both dict variables with different keys have the same list
token=['d','e','f']
m2['4422'].extend(token)
#m2['4422'] has the following values ['a','b','c''d','e','f'] as expected
#however m1 has the same values!!!
m1
#['a','b','c''d','e','f']
This question is different from a previous one (made by Lior) since it has some kind of a complicate indirection. I guess the answers of the prevuious question can help to understand this problem, but I think this one is a little bit more tricky.