4 ms·
Thank 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
by kbd 7y ago
Thank 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.