[issue34013] Inconsistent SyntaxError for print

Pablo Galindo Salgado report at bugs.python.org
Tue Aug 10 09:15:04 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

If we change the priority of the error messages, which is unclear if is easily possible, the error will suggest that

print hello should be parenthesized as print (hello) Which if corrected will leave the "world" part out as a call followed to a name, and here the comma suggestion is a valid concern.

I understand the willingness to have a better error here, but I am not sure what we can improve here.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34013>
_______________________________________


More information about the Python-bugs-list mailing list