New submission from Lysandros Nikolaou <[email protected]>:
While testing pegen, we found this out:
Python 3.9.0a5+ (heads/pegen:502dfb719e, Apr 10 2020, 20:57:05)
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> fur''
File "<stdin>", line 1
fur''
^
SyntaxError: invalid syntax
>>> eval("fur''")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1
fur''
^
SyntaxError: unexpected EOF while parsing
----------
components: Interpreter Core
messages: 366143
nosy: lys.nikolaou
priority: normal
severity: normal
status: open
title: Different error messages for same error - invalid string prefixes
type: behavior
versions: Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40246>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com