Specification for Merge Python Dictionaries
The tool / script shall be defined as merge_dicts. |
The python module merge_dicts shall provide a function to merge a list of python dictionaries to one dictionary. |
The above defined function to merge dictionaries shall treat list as: none, one, two or many dictionaries organized in a list.
|
As multiple dictionaries could have for the same Key different defined Values, merge_dicts shall report merge conflicts.
|
The definition of the same Key/Value Pair is allowed and shall not reported as a merge conflict.
|
If we have the same key in two dictionaries but different content, the first defined value shall be in the final dictionary.
|