"Anssi Saari" wrote in message news:vg3wph2i3dt....@coffee.modeemi.fi...
{'a': {}} and r references the empty dict inside that. So when we assign to rOK, so what happens is that now t references the dictionary with
again, it's the empty dict inside t (the one accessed by key 'a') that changes to {'b': {}} and t becomes {'a': {'b': {}}}. Yup, you have got it :-) Frank -- https://mail.python.org/mailman/listinfo/python-list