I have two dicts spec_copy
and actual_specs
and want to compare values of these two for keys of spec_copy
only.
This is what I'm trying -
all(spec_copy[k] != actual_specs[k] for k in spec_copy.keys())
.
Upon debugging these are the key values of those two dicts. -
Clearly the version is different still the condition returns False. It should return True instead.