[Python-Dev] performance of {} versus dict()

Xavier Morel catch-all at masklinn.net
Wed Nov 14 20:37:02 CET 2012


On 2012-11-14, at 19:54 , Mark Adam wrote:
> 
> Merging of two dicts is done with dict.update.

No, dict.update merges one dict (or two) into a third one.

> How do you do it on
> initialization?  This doesn't make sense.

dict(d1, **d2)


More information about the Python-Dev mailing list