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

Mark Adam dreamingforward at gmail.com
Wed Nov 14 21:53:11 CET 2012

On Wed, Nov 14, 2012 at 1:37 PM, Xavier Morel <catch-all at masklinn.net> wrote:
> 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.

No.  I think you need to read the docs.

>> How do you do it on
>> initialization?  This doesn't make sense.
> dict(d1, **d2)

That's not valid syntax is it?


More information about the Python-Dev mailing list