Re:PEP 0448 – Additional Unpacking Generalizations
by JoshTriplett on Saturday July 18, 2015 @12:21AM
(#9906562)
b|c for sets is commutative; b|c for dictionaries is not. | is not strictly required to commute, but a | operator that does not commute is surprising behavior, and Python doesn't favor surprising behavior.
a = b | c
makes perfect sense, vs:
a = b.copy()
a.update(c)