Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"…" (HORIZONTAL ELLIPSIS) should be an alternative syntax for "..." (FULL STOP FULL STOP FULL STOP) #56265

Closed
masklinn mannequin opened this issue May 11, 2011 · 4 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) topic-unicode type-feature A feature request or enhancement

Comments

@masklinn
Copy link
Mannequin

masklinn mannequin commented May 11, 2011

BPO 12056
Nosy @birkenfeld, @benjaminp, @masklinn

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2011-05-11.13:46:13.964>
created_at = <Date 2011-05-11.12:29:22.480>
labels = ['interpreter-core', 'type-feature', 'expert-unicode']
title = '"\xe2\x80\xa6" (HORIZONTAL ELLIPSIS) should be an alternative syntax for "..." (FULL STOP FULL STOP FULL STOP)'
updated_at = <Date 2021-05-19.06:06:18.579>
user = 'https://github.com/masklinn'

bugs.python.org fields:

activity = <Date 2021-05-19.06:06:18.579>
actor = 'xmorel'
assignee = 'none'
closed = True
closed_date = <Date 2011-05-11.13:46:13.964>
closer = 'benjamin.peterson'
components = ['Interpreter Core', 'Unicode']
creation = <Date 2011-05-11.12:29:22.480>
creator = 'xmorel'
dependencies = []
files = []
hgrepos = []
issue_num = 12056
keywords = []
message_count = 4.0
messages = ['135771', '135778', '135779', '393924']
nosy_count = 4.0
nosy_names = ['georg.brandl', 'benjamin.peterson', 'brandon-rhodes', 'xmorel']
pr_nums = []
priority = 'normal'
resolution = 'rejected'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue12056'
versions = ['Python 3.2']

@masklinn
Copy link
Mannequin Author

masklinn mannequin commented May 11, 2011

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 "..."

@masklinn masklinn mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) topic-unicode type-feature A feature request or enhancement labels May 11, 2011
@brandon-rhodes
Copy link
Mannequin

brandon-rhodes mannequin commented May 11, 2011

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.

@benjaminp
Copy link
Contributor

Making such substitutions is a good way to introduce subtle bugs.

@masklinn
Copy link
Mannequin Author

masklinn mannequin commented May 19, 2021

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', '≤')
    ≤

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) topic-unicode type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant