How does python dictionary matching work?
Does it go as many levels as the nesting is in the dictionary?
I am to confirm that matching happens on all the levels with value equality.
I am looking for the actual equality implementation source as well.
8 comments · 100% upvoted · other discussions
What do you mean by "matching", exactly?
codeforces_help [OP] 1 points · Jun 2021
By matching I mean given two json values, with lets say 5 level of nesting for some key, how does matching work. Does it really go accessing each and every level to match the values at that level?
K900_ 2 points · Jun 2021 · SRE person // please don't DM me your questions
Can you post a code example?
codeforces_help [OP] 1 points · Jun 2021
Consider the following json :
Given another similar json or even this same json on the right side of equality operator, how would that work? Does it really go level by level, every path matching keys and values?
K900_ 2 points · Jun 2021 · SRE person // please don't DM me your questions
Yes, it does.
codeforces_help [OP] 1 points · Jun 2021
Thanks.