31.05.21 22:24, André Roberge пише:
On Mon, May 31, 2021 at 4:17 PM Serhiy Storchaka <email@example.com mailto:firstname.lastname@example.org> wrote: 31.05.21 17:37, André Roberge пише: > For consistency, `Ellipsis` (the name) should **always** refer to the > same object that `...` refers to, so that both could not be assigned a > new value.
Making Ellipsis a keyword will break ast.Ellipsis (and maybe some third-party libraries).
I realized that after my initial post which is why I subsequently suggested that its repr should perhaps be "Ellipsis (...)".
It does not help. If Ellipsis is a keyword, it is not possible to have ast.Ellipsis. Not mentioned that it would be pretty confusing by itself -- why you need to write Ellipsis(), but not None() or True()?