+1

On Tue, 2021-06-01 at 05:46 +1000, Chris Angelico wrote:
On Tue, Jun 1, 2021 at 5:40 AM David Mertz <mertz@gnosis.cx> wrote:

I think making 'Ellipsis' a reserved word is too much.  The analogy with non-reserved words like `int`, `str`, `map`, `print`, and so on, illustrate this, I think.  I.e. redefining those is likely to cause bad things to happen, but we're consenting adults, and in the end they are just names.

However, I think improving the repr() of the Ellipsis object itself to remind users of the connection with its special literal `...` is a great idea.


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?

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@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/EK7DPA4ORNFAE3PVE44KPF7NAYO7B3P7/
Code of Conduct: http://python.org/psf/codeofconduct/