It really… doesn’t have to complicate. And I disagree that optimising python code is never necessary. Not everybody is writing 100-line one-off glue scripts.
Also, you are somewhat changing the topic from “what is an example of when you might want to is-compare two dicts”, no?
Also, you are somewhat changing the topic from “what is an example of when you might want to is-compare two dicts”, no?