This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JNCressey
Recipients JNCressey, terry.reedy
Date 2020-06-21.12:32:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:38JNCresseysetrecipients: + JNCressey, terry.reedy
2020-06-21 12:32:38JNCresseysetmessageid: <>
2020-06-21 12:32:38JNCresseylinkissue41064 messages
2020-06-21 12:32:38JNCresseycreate