4 ms·
Fantastic. Especially glad they went with | over +, that’s always felt like the natural way I’ve wanted to do this. Looking forward to more set-like operators i
by misnome 7y ago
Fantastic. Especially glad they went with | over +, that’s always felt like the natural way I’ve wanted to do this. Looking forward to more set-like operators in the future!
- kbd 7y agoThank goodness sanity prevailed on the operator! We had a whole discussion on HN last time[1] about this, where I argued that dicts are logically subclasses of sets and therefore should share operators. When I saw this headline I accepted my fate of typing the "wrong" operator from now on and liking Python just a tiny bit less for the inconsistency. So glad they reconsidered. [1] https://news.ycombinator.com/item?id=19314646 https://news.ycombinator.com/item?id=19314646
- mixmastamyk 7y agoGuido stated his preference to | and the pep was changed.