Re:PEP 584 – Add + and – operators to the built-in dict class
by zimablue on Wednesday March 06, 2019 @08:15AM
(#19318614)
You can't do value comparison without making dict item comparison a pissed in function or making dict values immutable. If you're doing something that really looks like a mathematical Union that will raise if there's any overlap then it's a really confusing abuse of notation. I don't think there's a way out.
I assume the same key with the same value would be OK, but I'm not really sure it's a good idea for it to be OK.