[Python-ideas] PEP: Dict addition and subtraction

Stephan Hoyer shoyer at gmail.com
Sat Mar 9 14:39:39 EST 2019

Would __iadd__ and __isub__ be added to collections.abc.MutableMapping?

This would be consistent with other infix operations on mutable ABCs, but
could potentially break backwards compatibility for anyone who has defined
a MutableMapping subclass that implements __add__ but not __iadd__.
On Sat, Mar 9, 2019 at 8:55 AM Steven D'Aprano <steve at pearwood.info> wrote:

> Thanks to everyone who has contributed to the discussion, I have been
> reading all the comments even if I haven't responded.
> I'm currently working on an update to the PEP which will, I hope,
> improve some of the failings of the current draft.
> --
> Steven
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190309/bc1ce3a0/attachment.html>

More information about the Python-ideas mailing list