Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion performance of {} versus dict()
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
MRAB  
View profile  
 More options Nov 14 2012, 4:21 pm
From: MRAB <pyt...@mrabarnett.plus.com>
Date: Wed, 14 Nov 2012 21:20:33 +0000
Local: Wed, Nov 14 2012 4:20 pm
Subject: Re: [Python-Dev] performance of {} versus dict()
On 2012-11-14 20:53, Mark Adam wrote:
> On Wed, Nov 14, 2012 at 1:37 PM, Xavier Morel <catch-...@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?

No.

You can have dict(d1) and dict(**d2), but not dict(d1, **d2).

_______________________________________________
Python-Dev mailing list
Python-...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/dev-python%2Bgarchi...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.