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 lys.nikolaou
Recipients gvanrossum, lys.nikolaou, pablogsal, serhiy.storchaka, vstinner
Date 2020-04-29.00:45:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588121155.15.0.82173873873.issue40246@roundup.psfhosted.org>
In-reply-to
Content
A possible solution would be to only emit a SyntaxError if the NAME directly preceding a STRING token contains one of the valid string prefixes (either one of 'f', 'r', 'u', 'b'). This would still output a nicer error message, but would not break code like the one of the example. What do you think about this?
History
Date User Action Args
2020-04-29 00:45:55lys.nikolaousetrecipients: + lys.nikolaou, gvanrossum, vstinner, serhiy.storchaka, pablogsal
2020-04-29 00:45:55lys.nikolaousetmessageid: <1588121155.15.0.82173873873.issue40246@roundup.psfhosted.org>
2020-04-29 00:45:55lys.nikolaoulinkissue40246 messages
2020-04-29 00:45:55lys.nikolaoucreate