> These would be mixin methods, not abstract. Set already implements the > various operators based on the abstract methods, it could easily add more > mixin methods which would delegate to the operators. Classes which override > the operators with more efficient versions would automatically get efficient > aliases for free.
This same idea came up when we added `|` / `|=` to `dict` in 3.8. The reason we couldn't safely add those to `Mapping`/`MutableMapping` is that it could break compatibility for virtual subclasses that have been `register`-ed, and don't actually inherit from the ABC. The problem is the same here. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/SROUV3AE6PD42EZWMGXI4337I35PUZPH/ Code of Conduct: http://python.org/psf/codeofconduct/