function call questions
Frank Millman
frank at chagford.com
Fri Oct 21 03:43:32 EDT 2016
More information about the Python-list mailing list
Fri Oct 21 03:43:32 EDT 2016
- Previous message (by thread): function call questions
- Next message (by thread): function call questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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
- Previous message (by thread): function call questions
- Next message (by thread): function call questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list