Josh Rosenberg added the comment:
I'm closing this as not being worth the costs of adding new keywords. You're
welcome to propose it on the python-ideas list (a more appropriate place to
propose and suss out the details of significant language changes), but you'll
need to formulate a much
Serhiy Storchaka added the comment:
There is Ellipsis class in the ast module. Although it is deprecated now. But I
there may be Ellipsis names also in third-party libraries. Making Ellipsis a
keyword would break them.
--
nosy: +serhiy.storchaka
Josh Rosenberg added the comment:
You can do the same thing to replace int, float, dict, len, and all the other
built-in classes and functions. Why is Ellipsis so special that it needs
protection, especially when, as you note, ... is an available unoverrideable
way to refer to it? Making
New submission from Alex <2423067...@qq.com>:
In early versions of python, programmers can simply swap True and False by
>>> True, False = False, True
Then True and False and None become keywords so programmers can't change their
value.
... is also a keyword, but Ellipsis is not. So the code