Message383787
I strongly disagree. '<>' is not a legal operator any more. It is a parse-time syntax error. Whatever historical artifact is left in the CPython tokenizer, recognizing '<>' is not exposed to Python code.
>>> p = ast.parse('a <> b')
Traceback (most recent call last):
...
a <> b
^
SyntaxError: invalid syntax
When '<>' was legal, we may presume that tokenizer recognized it, so that not recognizing it was an intentional change. Reverting this would be a dis-service to users.
I think that the PR and this issue should be closed. If the historical artifact bothers you, propose removing it instead on introducing a bug into tokenizer. |
|
Date |
User |
Action |
Args |
2020-12-26 00:56:19 | terry.reedy | set | recipients:
+ terry.reedy, esoma |
2020-12-26 00:56:19 | terry.reedy | set | messageid: <1608944179.17.0.62699230757.issue42687@roundup.psfhosted.org> |
2020-12-26 00:56:19 | terry.reedy | link | issue42687 messages |
2020-12-26 00:56:19 | terry.reedy | create | |
|