On 2021-05-31 21:19, Serhiy Storchaka wrote:
31.05.21 22:46, Chris Angelico пише:
Originally, the notation "..." could only be used inside a subscript, and anywhere else, you'd have to spell it "Ellipsis". Now that you can use "..." anywhere, would it be worth switching the repr to just be that?
How would you then distinguish a recursive list from a list containing Ellipsis?
>>> a = ; a.append(a); a [[...]] >>> [[...]] [[Ellipsis]]
Why is it 3 dots anyway? As we've already ascribed a meaning to 3 dots, why not use 4 dots in this use?