-
Notifications
You must be signed in to change notification settings - Fork 93
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
Better control with swap, select which of (change/add/remove) to swap. #128
Comments
@oppsig can you provide an example data for |
Ok, I will update this later with some examples. |
Ok, sorry for this lengthy response. My goal here is to merge the old dict with the new, changing keys changed in new data, adding new keys, but also adding keys that were in old but not new. When i try to use swap it does not give me enough control of the changes. I don't really get what patch does either, because patch is just a copy of new data. Thanks in advance, see code and output below, just ask if you need any more information. Code:
Output from this:
|
I am not sure about line
Have you tried the |
Thanks, will do some more tests and update this issue. |
Just wondering how to use the Merger class. |
I want to only swap add / remove of the diff, not change positions on all changes.
Or if i only wanted to change positions on changes for an example.
Any way to implement this?
data_old contains more keys than data_new.
i want to keep these old keys in the patch, but change values for newer values.
The text was updated successfully, but these errors were encountered: