
Oct. 20, 2019
4:52 a.m.
I think this PEP doesn't include one big disadvantage of the + operator. If we use + for dict merging, set doesn't support + looks strange and inconsistent. And if we add + to set too, set has three way (method, |, and +) to do merging. Then, all builtin container classes support +. It looks + is the common way to merge two containers in some way. Shouldn't we add it to abc? So I think we shouldn't focus just adding `+` to dict. It comes with huge side effect. We should think about general API design of the (esp. builtin) containers. Regards, -- Inada Naoki <songofacandy@gmail.com>