This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients brandtbucher, gvanrossum, ncoghlan, rhettinger, serhiy.storchaka
Date 2021-07-23.07:13:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627024438.18.0.9655724109.issue43838@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2021-07-23 07:13:58serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, rhettinger, ncoghlan, brandtbucher
2021-07-23 07:13:58serhiy.storchakasetmessageid: <1627024438.18.0.9655724109.issue43838@roundup.psfhosted.org>
2021-07-23 07:13:58serhiy.storchakalinkissue43838 messages
2021-07-23 07:13:58serhiy.storchakacreate