5 ms·
No. That's the absolutely worse way of solving the problem. 1) I either want them to be overridden or not. The current .update can do both, you just put the di
by raverbashing 8y ago
No. That's the absolutely worse way of solving the problem.
1) I either want them to be overridden or not. The current .update can do both, you just put the dict you don't want to override as its argument
2) finding common keys is a different problem, which can be solved in a different way
So no, throwing an exception is just completely useless and won't make any of the common cases easier