Timeline for How do I merge two dictionaries in a single expression in Python?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 5, 2021 at 14:22 | comment | added | Corentor | Handy solution when the default behaviour of the shorter and simpler solutions (replacement of values of common keys by the second dictionary) is not wished. For Python 3, iteritems() is not available anymore in dicts, and one can simply use items() instead. | |
S Sep 13, 2014 at 19:56 | history | suggested | Rainy | CC BY-SA 3.0 |
various improvements
|
Sep 13, 2014 at 19:27 | review | Suggested edits | |||
S Sep 13, 2014 at 19:56 | |||||
Mar 7, 2014 at 0:57 | history | edited | rcreswick | CC BY-SA 3.0 |
renamed the keyword merge fn for clarity.
|
May 15, 2012 at 1:02 | review | Suggested edits | |||
May 15, 2012 at 12:21 | |||||
Sep 4, 2008 at 19:08 | history | answered | rcreswick | CC BY-SA 2.5 |