toejough / dictmerge

merge python dictionaries
MIT License
0 stars 1 forks source link

Add better semantics for customizing type merge functions #1

Closed toejough closed 9 years ago

toejough commented 9 years ago

Just having the MERGE_FUNCTIONS global is ugly. Asking users to override things there is worse.

Leave the default 'merge' function, but create a Merge class which you can customize functions in, and then call via Merge.call.