[issue27541] Repr of collection's subclasses
Xiang Zhang
report at bugs.python.org
Sun Jul 17 06:12:47 EDT 2016
Xiang Zhang added the comment:
Yes. So if we are not going to change other built-in types, maybe we'd better not change bytearray either. My opinion is that don't change built-in classes, even bytearray. If users would like a more reasonable repr, they can provide a custom __repr__ as your example. But make such changes to classes in collections sounds like a good idea to me.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27541>
_______________________________________
More information about the Python-bugs-list
mailing list