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?
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/IQ25HSKBHWVXXK7M4G73V4FXOEN2F6MZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to