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

Are you aware that changing just __str__ will not change the result of repr(), 
so that nested Ellipsis and Ellipsis in REPL will be still represented by name?

>>> print(...)
...
>>> print([...])
[Ellipsis]
>>> ...
Ellipsis

But changing also __repr__ will conflict with using "..." for representing 
recursive collections.

>>> a = []
>>> a.append(a)
>>> a
[[...]]

----------

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

Reply via email to