[issue44369] Improve syntax error for wrongly closed strings
Andre Roberge
report at bugs.python.org
Wed Jun 9 19:02:14 EDT 2021
Andre Roberge <andre.roberge at gmail.com> added the comment:
I like this. While it would be a bit longer, I'm wondering if the message should not read instead as follows:
... Did you use the same quotes here as those enclosing the string?
===
I suspect that errors coming from the use of a single quote, as in:
'Don't do this'
might be just as prevalent if not more so; however, they might be more difficult to properly diagnose.
----------
nosy: +aroberge
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44369>
_______________________________________
More information about the Python-bugs-list
mailing list