This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients gvanrossum, photofone, serhiy.storchaka, xtreak
Date 2018-09-27.07:06:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538032007.6.0.545547206417.issue34815@psf.upfronthosting.co.za>
In-reply-to
Content
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
[[...]]
History
Date User Action Args
2018-09-27 07:06:47serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, xtreak, photofone
2018-09-27 07:06:47serhiy.storchakasetmessageid: <1538032007.6.0.545547206417.issue34815@psf.upfronthosting.co.za>
2018-09-27 07:06:47serhiy.storchakalinkissue34815 messages
2018-09-27 07:06:47serhiy.storchakacreate