This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients lys.nikolaou, pablogsal
Date 2021-06-09.21:15:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623273352.85.0.523852871256.issue44369@roundup.psfhosted.org>
In-reply-to
Content
Let's asume this string:
"
x = "Cannot recover from "MemoryErrors" while something happnes while "

The line is incorrect because the quotes arround MemoryErrors are the same as the string is used, resulting in STRING + expression + STRING.

Currenly we say:

>>> 'Cannot recover from 'MemoryErrors' while '
  File "<stdin>", line 1
    'Cannot recover from 'MemoryErrors' while '
                          ^
SyntaxError: invalid syntax

but I think it will be a great improvement if we say:

>>> 'Cannot recover from 'MemoryErrors' while '
  File "<stdin>", line 1
    'Cannot recover from 'MemoryErrors' while '
                          ^^^^^^^^^^^^
SyntaxError: invalid syntax. Did you use the same quotes here as the string?

Probably the message should be better, but I think this is a good improvement.
History
Date User Action Args
2021-06-09 21:15:52pablogsalsetrecipients: + pablogsal, lys.nikolaou
2021-06-09 21:15:52pablogsalsetmessageid: <1623273352.85.0.523852871256.issue44369@roundup.psfhosted.org>
2021-06-09 21:15:52pablogsallinkissue44369 messages
2021-06-09 21:15:52pablogsalcreate