In Python 3, "..." became useable as a normal expression, and translates into an ellipsis instance. Unicode defines an ellipsis character "…" (U+2026 HORIZONTAL ELLIPSIS) which is canonically equivalent to a 3-sequence of FULL STOP [U+002E U+002E U+002E] I think it would be nice if Python supported "…" as an alternative to "..."
But if we allow for ellipsis, then would we not also have to start allowing characters like ≥ and ≤ in Python? And the problem with any of these (admittedly very attractive) substitutions is that they seem to abandon the principle of there being One Obvious Way of typing any given expression. Instead there would now be several alternate ways, with different styles in different codebases and, I think, something of a visual and symbolic mess resulting. I like each symbol to have exactly one possible representation.
> But if we allow for ellipsis, then would we not also have to start allowing characters like ≥ and ≤ in Python? No, they're not defined as canonically equivalent to >= and <= by the Unicode specification: >>> unicodedata.normalize('NFKD', '…') ... >>> unicodedata.normalize('NFKD', '≤') ≤
History
Date
User
Action
Args
2022-04-11 14:57:17
admin
set
github: 56265
2021-05-19 06:06:18
xmorel
set
messages: +
2011-05-11 13:46:13
benjamin.peterson
set
status: open -> closednosy: + benjamin.petersonmessages: + resolution: rejected