-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-133197: Improve error message for ft""
and bt""
cases
#133202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hm, looks like other string prefixes can also conflict with no clear message. Examples: >>> tb''
File "<python-input-3>", line 1
tb''
^^
SyntaxError: invalid syntax
>>> fb''
File "<python-input-0>", line 1
fb''
^^
SyntaxError: invalid syntax
>>> ru''
File "<python-input-1>", line 1
ru''
^^
SyntaxError: invalid syntax
>>> bu''
File "<python-input-2>", line 1
bu''
^^
SyntaxError: invalid syntax Let's handle all |
ft""
caseft""
and bt""
cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple of comments inline. Also, it appears that the issue number is wrong. Could you change it please?
ft""
and bt""
casesft""
and bt""
cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! This is a nice improvement! Let's follow up with the rest of the prefixes.
Refs #133197