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 aroberge
Recipients aroberge
Date 2021-04-06.12:24:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617711848.38.0.240112674154.issue43748@roundup.psfhosted.org>
In-reply-to
Content
Python version 3.10.0a7 added a more informative error message for:

>>> f"{**k}"
  File "<stdin>", line 1
    (**k)
     ^
SyntaxError: f-string: can't use double starred expression here

Previously, the message was simply "SyntaxError: invalid syntax".  So, this change is certainly a welcome addition.

However, as far as I can tell, starting with Python 3.8, all previous uses of "can't" in error messages were replaced by "cannot".  Although it is an extremely minor point, it might be preferable for consistency to replace "can't" by "cannot" in this new error message.
History
Date User Action Args
2021-04-06 12:24:08arobergesetrecipients: + aroberge
2021-04-06 12:24:08arobergesetmessageid: <1617711848.38.0.240112674154.issue43748@roundup.psfhosted.org>
2021-04-06 12:24:08arobergelinkissue43748 messages
2021-04-06 12:24:07arobergecreate