Andrew Barnert wrote:
> On Oct 14, 2019, at 07:15, Steven D'Aprano [email protected] wrote:
> > Speaking of UserString, does anyone know why it isn't
> > registered as a 
> > virtual subclass of str?
> > None of the concrete classes register virtual subclasses, so this would be a
> unique exception.

See the final lines in 
https://github.com/python/cpython/blob/3.7/Lib/_collections_abc.py

    MutableSequence.register(list)
    MutableSequence.register(bytearray)  # Multiply inheriting, see ByteString

[snip]
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/ZESVNXIZADLEVPBBUJCMEAE2NCV2TXP7/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to