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 alexandre.vassalotti
Recipients alexandre.vassalotti, hotdog003, loewis
Date 2009-07-03.21:36:59
SpamBayes Score 0.013941834
Marked as misclassified No
Message-id <1246657021.95.0.142460473749.issue6410@psf.upfronthosting.co.za>
In-reply-to
Content
I am against adding __add__ to dict, since merging dictionaries is not a
commutative operation.

If a short syntax is desired for merging dictionaries, the just define a
function. For example: 

def merge_dicts(*args):
  result = {}
  for x in args:
    result.update(x)
  return result
History
Date User Action Args
2009-07-03 21:37:02alexandre.vassalottisetrecipients: + alexandre.vassalotti, loewis, hotdog003
2009-07-03 21:37:01alexandre.vassalottisetmessageid: <1246657021.95.0.142460473749.issue6410@psf.upfronthosting.co.za>
2009-07-03 21:37:00alexandre.vassalottilinkissue6410 messages
2009-07-03 21:36:59alexandre.vassalotticreate