Message391620
To improve the user experience understanding what part of the error messages associated to SyntaxErrors are wrong, we can highlight the whole error range and not only place the caret at the first character. In this way:
>>> foo(x, z for z in range(10), t, w)
File "<stdin>", line 1
foo(x, z for z in range(10), t, w)
^
SyntaxError: Generator expression must be parenthesized
becomes
>>> foo(x, z for z in range(10), t, w)
File "<stdin>", line 1
foo(x, z for z in range(10), t, w)
^^^^^^^^^^^^^^^^^^^^
SyntaxError: Generator expression must be parenthesized |
|
Date |
User |
Action |
Args |
2021-04-22 18:08:10 | pablogsal | set | recipients:
+ pablogsal |
2021-04-22 18:08:10 | pablogsal | set | messageid: <1619114890.78.0.876060892584.issue43914@roundup.psfhosted.org> |
2021-04-22 18:08:10 | pablogsal | link | issue43914 messages |
2021-04-22 18:08:10 | pablogsal | create | |
|