New submission from Andre Roberge <andre.robe...@gmail.com>:

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.

----------
components: Interpreter Core
messages: 390323
nosy: aroberge
priority: normal
severity: normal
status: open
title: Inconsistent grammar in new error message (introduced in 3.10.0a7)
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43748>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to