Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

list inherits __str__ from object. object.__str__() calls __repr__() which can 
be overridden in subclasses. So if you want repr() and str() returned the same, 
you need to define only the __repr__() method. This is a feature, not a bug.

----------
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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

Reply via email to