deepdiff icon indicating copy to clipboard operation
deepdiff copied to clipboard

Not a bug: How to know all the values and keys which are matching

Open sant527 opened this issue 3 years ago • 3 comments

This program is really great and saving my day

also i want to know all the keys and their values which are mathching also then its complete

Like we have

type_changes dictionary_item_added dictionary_item_removed values_changed

PLUS if we have values_matching

then i can see all the keys are covered. Currently i have to show keys whose values are matching.

sant527 avatar May 24 '22 03:05 sant527

Thanks. :)

DeepDiff currently only shows the difference and not what is matching between the 2 objects. You will want to manually traverse your object and mark everything not reported by DeepDiff as “value matching”

Sep Dehpour

On May 23, 2022, at 8:52 PM, Santhosh Kumar @.***> wrote:

 This program is really great and saving my day

also i want to know all the keys and their values which are mathching also then its complete

Like we have

type_changes dictionary_item_added dictionary_item_removed values_changed

PLUS if we have values_matching

then i can see all the keys are covered. Currently i have to show keys whose values are matching.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

seperman avatar May 24 '22 16:05 seperman

Also can we look the values of dictionary_item_added and dictionary_item_removed

sant527 avatar May 25 '22 10:05 sant527

@sant527 yep, you want to set the verbose_level=2: https://zepworks.com/deepdiff/current/diff.html

seperman avatar May 25 '22 15:05 seperman