4 ms·
Surely a more intuitive syntax would be: X ++ {'fo'+'o': 'bar'} ++ y Where '++' here means dictionary union, the choice of symbol is not relevant.
by willtim 9y ago
Surely a more intuitive syntax would be:
X ++ {'fo'+'o': 'bar'} ++ y
Where '++' here means dictionary union, the choice of symbol is not relevant.
- orf 9y agoNot really, and it's not getting most pythonic way of doing things IMO. With the syntax above (I think) you can work with any iterable, whereas with a dictionary union operator you'd have to define it on every class you'd want to use, and you'd be out of luck with generators.