
May 31, 2021
8:19 p.m.
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]]