[issue40599] Improve error messages with expected keywords

Lysandros Nikolaou report at bugs.python.org
Mon May 11 19:10:25 EDT 2020


Lysandros Nikolaou <lisandrosnik at gmail.com> added the comment:

I also concur with Guido here. I have played around with other languages and I dislike getting a long list of expected tokens, that are not helpful, if not actually confusing sometimes.

I think that the current generic SyntaxError description together with the error caret actually does a good job of directing someone to close where the error is, without providing too much information that might be misleading.

----------

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


More information about the Python-bugs-list mailing list