[issue40176] unterminated string literal tokenization error messages could be better

Serhiy Storchaka report at bugs.python.org
Thu Apr 9 03:46:22 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I afraid there may be confusion between triple, double and single quoted string literals. So I suggest to change error messages to just "unterminated triple-quoted string literal" and "unterminated string literal" (or "unterminated single-quoted string literal"). Terms "triple-quoted" and "single-quoted" are used several times in the documentation. Term "double-quoted" is used only once, and I suppose in different meaning.

----------

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


More information about the Python-bugs-list mailing list