A SyntaxError less detailed since 3.10 in specific example #94192
Labels
interpreter-core
Interpreter core (Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Python 3.10.5
New SyntaxError ^ pointer is misleading in following example compared to older python versions.
d = { "foo":"foo", "bar":lambda b:{"bar":testfn(von="1"b=b)}, }
(code written in 4 lines, but github...)
Results in error message on 3.10.5:
While on python 3.8 it was more helpful:
(the formatting of this "^" seems to be not correct here at github. On 3.10.5 it is pointing on the ":" prior to lambda, while on 3.8 it is pointing on the missing comma)
The text was updated successfully, but these errors were encountered: