Message395476
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. |
|
Date |
User |
Action |
Args |
2021-06-09 21:15:52 | pablogsal | set | recipients:
+ pablogsal, lys.nikolaou |
2021-06-09 21:15:52 | pablogsal | set | messageid: <1623273352.85.0.523852871256.issue44369@roundup.psfhosted.org> |
2021-06-09 21:15:52 | pablogsal | link | issue44369 messages |
2021-06-09 21:15:52 | pablogsal | create | |
|