"Anssi Saari"  wrote in message news:vg3wph2i3dt....@coffee.modeemi.fi...

OK, so what happens is that now t references the dictionary with
{'a': {}} and r references the empty dict inside that. So when we assign to r
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

Reply via email to