3 ms·
dict1 + dict2 is syntactic sugar, you had been able to do `dict1.update(dict2)` since forever.
by nomdep 6y ago
dict1 + dict2 is syntactic sugar, you had been able to do `dict1.update(dict2)` since forever.
- HelloNurse 6y agoNo, it's completely different: dict1+dict2 creates a new object and leaves inputs unchanged, dict1.update(dict2) modifies dict1.
- slaman 6y agoyou've been able to do splat for forever! https://dpaste.org/yU7s https://dpaste.org/yU7s