-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursive dict merge #65
Comments
Hey Jason, Happy to hear you're enjoying this package. The goal of munch is to be a simple alternative to python's standard dict that supports attribute-style access, without too many additional features besides that. The merge function idea you suggested sounds really cool, but unfortunately it would be a bit of a feature creep to add it to Munch. You can always extend the Munch class using inheritance or composition and add this functionality in your own repository if you'd like. Best of luck, |
Thank you, David, I use below code to merge 2 dict recursively, then create a new munch object from the new dict object. The code doesn't process list(tuple), but it is enough for me now. Regards, |
Thanks for creating this useful package.
Could you add a merge(self, other_munch_obj/mapping_obj) function to merge them recursively.
Thanks in advance.
Jason.
The text was updated successfully, but these errors were encountered: