New submission from Arjun <[email protected]>:
Recently, CPython got a new syntax error, "SyntaxError: expression expected
after dictionary key and ':'". I propose to add a "expected expression" in
general for consistency. I would like to have it changed for all the "equals"
(e.g. PLUSEQUAL, MINEQUAL, etc).
>>> x =
File "<stdin>", line 1
x =
^
SyntaxError: invalid syntax
Would be enhanced by:
>>> x +=
File "<stdin>", line 1
x =
^
SyntaxError: expected expression
----------
components: Parser
messages: 395213
nosy: CCLDArjun, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: add a "expected expression" syntax error
type: enhancement
versions: Python 3.11
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44324>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com