[Python-ideas] PEP: Dict addition and subtraction
Antoine Pitrou
solipsis at pitrou.net
Thu Mar 21 13:06:36 EDT 2019
On Fri, 22 Mar 2019 03:42:00 +1100
Steven D'Aprano <steve at pearwood.info> wrote:
>
> For those who oppose the + operator, it will help me if you made it
> clear whether it is *just* the + symbol you dislike, and would accept
> the | operator instead, or whether you hate the whole operator concept
> regardless of how it is spelled.
I'd rather see a method. Dict merging just doesn't occur often enough
that an operator is desirable for it.
> And to those who support this PEP, code examples where a dict merge
> operator will help are most welcome!
Yes, I still have no idea why this operator would supposedly be
useful. How many dict merges do you write per month?
Regards
Antoine.
More information about the Python-ideas
mailing list