News for hackers. Stuff that matters.
Re:PEP 584 – Add + and – operators to the built-in dict class by 103e on Wednesday March 06, 2019 @08:27AM (#19318689)
Meant to respond to top level parent who said:

> dicts would subclass sets

Was trying to make the case as to why treating dictionaries as a child of <generic collection> with an extend/merge operation using ‘+’ rather than a child of set with a union operation ‘|’ makes more sense (to me).

Changing the behaviour of a well defined operation like union seems bad - although my case is somewhat undermined by python’s overloading of ‘+’ to mean extend.

There are no comments on this comment yet.