[Python-ideas] Adding "+" and "+=" operators to dict

Steven D'Aprano steve at pearwood.info
Fri Feb 13 07:21:00 CET 2015


On Thu, Feb 12, 2015 at 07:52:09PM -0800, Andrew Barnert wrote:

> > - Surely this change is minor enough that it doesn't need a PEP? It just
> >  needs a patch and approval from a senior developer with commit 
> >  privileges.
> 
> I'm not sure about this. If you want to change MutableMapping.update 
> too, you'll be potentially breaking all kinds of existing classes that 
> claim to be a MutableMapping and override update with a method with a 
> now-incorrect signature.

Fair enough. It's a bigger change than I thought, but I still think it 
is worth doing.

-- 
Steve


More information about the Python-ideas mailing list