Message90081
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 |
|
Date |
User |
Action |
Args |
2009-07-03 21:37:02 | alexandre.vassalotti | set | recipients:
+ alexandre.vassalotti, loewis, hotdog003 |
2009-07-03 21:37:01 | alexandre.vassalotti | set | messageid: <1246657021.95.0.142460473749.issue6410@psf.upfronthosting.co.za> |
2009-07-03 21:37:00 | alexandre.vassalotti | link | issue6410 messages |
2009-07-03 21:36:59 | alexandre.vassalotti | create | |
|