On 27.12.15 19:16, Guido van Rossum wrote:
I really feel you all are overworrying and overthinking this. A downside
to me is that <...> isn't clear about what the type of the object is.
The use case here is not sophisticated users, it's beginners who have
accidentally managed to create a recursive list or dict. They have most
likely not even encountered Ellipsis objects yet. There's nothing
clearer than the current notation to help them see that they've done
something unusual.
My second alternative was to use full object.__repr__. E.g. <list object at 0xb7111498>.
Or, if this is considered too long, shorter form: <list>.
Or, as Georg suggested, use the word "recursive" for clearness: <recursive>. Or combine type name and the word "recursive":
<recursive list>.