toejough / dictmerge

merge python dictionaries
MIT License
0 stars 1 forks source link

Add some reasonable non-default merge functions #4

Closed toejough closed 9 years ago

toejough commented 9 years ago

It's reasonable for someone to want a dictionary merge that throws an exception when there are conflicts, or a set merge that does an intersection instead of a union, or a string merge that merges strings, or a generic iterable merge-to-list, or a generic iterable merge-to-set, etc.

Provide these in some sort of 'extras' struct or package, and maybe provide a few pre-customized Merge classes/functions.

toejough commented 9 years ago

Examples: