Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

For __or__ we need to copy the content of both mapping to the resulting mapping 
in any case. We can implement it as {**self, **other}. We should not use the 
copy() method because it is not a part of the Mapping interface.

For __eq__, no copying is needed if we just re-implement Mapping.__eq__ (with 
special cases for few known types for performance).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43838>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to