Message371995
Compare f"{*my_tuple}" with f"{**my_dict}".
Both are syntax errors since you can't use unpacking here, but the bug is as follows:
- For the tuple, IDLE highlights the asterisk and has the helpful message 'SyntaxError: can't use starred expression here',
- But for the dictionary, the first few characters of your code are highlighted, regardless of where the syntax error is located, and the message only says 'SyntaxError: invalid syntax'.
Bug occurs in both 3.8.3 and 3.7.7, I haven't tested it in 3.6 nor in-development versions. |
|
Date |
User |
Action |
Args |
2020-06-21 12:32:38 | JNCressey | set | recipients:
+ JNCressey, terry.reedy |
2020-06-21 12:32:38 | JNCressey | set | messageid: <1592742758.57.0.680300455155.issue41064@roundup.psfhosted.org> |
2020-06-21 12:32:38 | JNCressey | link | issue41064 messages |
2020-06-21 12:32:38 | JNCressey | create | |
|