Serhiy Storchaka added the comment:

This can break third-party code. For example the code that explicitly makes the 
repr containing a subclass name:

class MyStr(str):
    def __repr__(self):
        return 'MyStr(%s)' % str.__repr__(self)

I think the chance of breaking third-party code for bytearray or deque is 
smaller, since the repr is not literal.

----------

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

Reply via email to