Message386086
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. |
|
Date |
User |
Action |
Args |
2021-02-01 18:07:13 | brandtbucher | set | recipients:
+ brandtbucher, rhettinger, mrabarnett, steven.daprano, veky, uriyyo |
2021-02-01 18:07:13 | brandtbucher | set | messageid: <1612202833.73.0.422059372209.issue43085@roundup.psfhosted.org> |
2021-02-01 18:07:13 | brandtbucher | link | issue43085 messages |
2021-02-01 18:07:13 | brandtbucher | create | |
|