This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Pix
Recipients Pix, vstinner
Date 2014-06-06.10:39:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402051167.46.0.319842293885.issue21678@psf.upfronthosting.co.za>
In-reply-to
Content
Is's like list's operation + and it's method list.extend().
But dict have no operation +...

If I have two lists (A and B), and I want to get third list (not change A and B) i do this:
C = A + B

If I have two dicts, i can do this:
C = dict(A, **B)

But if i have three dictionaries, code becomes this:
C = dict(A, **dict(B, **D))

Don't you think, that "+" is more comfortable?
A = [1, 2, 3]
B = [4, 5]
C = [6, 7]
A + B + C = [1,2,3,4,5,6,7]

I can do this with list, tuples and strings. Why i can't do this with dictionaries?
History
Date User Action Args
2014-06-06 10:39:27Pixsetrecipients: + Pix, vstinner
2014-06-06 10:39:27Pixsetmessageid: <1402051167.46.0.319842293885.issue21678@psf.upfronthosting.co.za>
2014-06-06 10:39:27Pixlinkissue21678 messages
2014-06-06 10:39:27Pixcreate