function call questions
Frank Millman
frank at chagford.com
Fri Oct 21 03:43:32 EDT 2016
"Anssi Saari" wrote in message news:vg3wph2i3dt.fsf at 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
More information about the Python-list
mailing list