Serhiy Storchaka <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue43838>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com