[issue27541] Repr of collection's subclasses
Serhiy Storchaka
report at bugs.python.org
Sun Jul 17 06:00:55 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue27541>
_______________________________________
More information about the Python-bugs-list
mailing list