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 brandtbucher
Recipients brandtbucher, mrabarnett, rhettinger, steven.daprano, uriyyo, veky
Date 2021-02-01.18:07:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612202833.73.0.422059372209.issue43085@roundup.psfhosted.org>
In-reply-to
Content
Any class that registers itself as a Mapping/MutableMapping using their "register" methods (*not* through inheritance) will be lacking the new methods. This includes all C extensions.

Further, binary "|" would require subclasses of these ABCs to have a concrete way of creating a new instance (we don't have anything like Set._from_iterable for this). One option could be to just call self.__class__({**self, **other}), but a cursory scan of the stdlib shows that many classes don't have compatible signatures, and the we would get lots of surprising/broken behavior if we just suddenly introduced this.
History
Date User Action Args
2021-02-01 18:07:13brandtbuchersetrecipients: + brandtbucher, rhettinger, mrabarnett, steven.daprano, veky, uriyyo
2021-02-01 18:07:13brandtbuchersetmessageid: <1612202833.73.0.422059372209.issue43085@roundup.psfhosted.org>
2021-02-01 18:07:13brandtbucherlinkissue43085 messages
2021-02-01 18:07:13brandtbuchercreate