Message389366
Cressey noted both a compile and IDLE Shell issue. They must be handled separately by different people in separate bpo issues.
The first is about the helpful versus less helpful SyntaxError messages in the following (master compiled today).
>>> f'{*x}'
File "<stdin>", line 1
(*x)
^
SyntaxError: f-string: can't use starred expression here
>>> f'{**x}'
File "<stdin>", line 1
(**x)
^
SyntaxError: f-string: invalid syntax
The request is make the 2nd message the same or like the 1st. Seems like it should be possible. I am limiting this bpo issue to this request and opened #43600 for fixing IDLE's highlight location.
Pablo, I leave it to you to handle the message enhancement request. Do you know if there is any other situation like this in which the compiled text is not the input code? |
|
Date |
User |
Action |
Args |
2021-03-23 02:11:14 | terry.reedy | set | recipients:
+ terry.reedy, eric.smith, pablogsal, epaine, JNCressey |
2021-03-23 02:11:13 | terry.reedy | set | messageid: <1616465473.97.0.136643011299.issue41064@roundup.psfhosted.org> |
2021-03-23 02:11:13 | terry.reedy | link | issue41064 messages |
2021-03-23 02:11:13 | terry.reedy | create | |
|