Message326527
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
[[...]] |
|
Date |
User |
Action |
Args |
2018-09-27 07:06:47 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, xtreak, photofone |
2018-09-27 07:06:47 | serhiy.storchaka | set | messageid: <1538032007.6.0.545547206417.issue34815@psf.upfronthosting.co.za> |
2018-09-27 07:06:47 | serhiy.storchaka | link | issue34815 messages |
2018-09-27 07:06:47 | serhiy.storchaka | create | |
|