Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

Because ABCs set minimum standards for compliance, they can't be extended 
without breaking existing code that registers to the ABC.

Brandt added __or/ior__ support to some of the mapping classes in the standard 
library, but it is a fact of life that there will always be some mapping 
classes that don't have __or/ior__ support.  It is an optional feature.

It is possible add new ABC subclasses with the extra methods, but I don't think 
that is worth it.  The effort for a mapping class maintainer to change which 
class it inherits from or registers to is about equal to the effort to just add 
the two methods.

So, I think your best bet is to propose PRs for individual mapping classes on a 
case-by-case basis.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43085>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to