Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-133197: Improve error message forft"" andbt"" 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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sobolevn merged 4 commits intopython:mainfromsobolevn:issue-133196
Apr 30, 2025

Conversation

sobolevn
Copy link
Member

@sobolevnsobolevn commentedApr 30, 2025
edited
Loading

@sobolevn
Copy link
MemberAuthor

Hm, looks like other string prefixes can also conflict with no clear message. Examples:

>>>tb''File"<python-input-3>",line1tb''^^SyntaxError:invalidsyntax>>>fb''File"<python-input-0>",line1fb''^^SyntaxError:invalidsyntax>>>ru''File"<python-input-1>",line1ru''^^SyntaxError:invalidsyntax>>>bu''File"<python-input-2>",line1bu''^^SyntaxError:invalidsyntax

Let's handle allt cases here maybe andu-string prefixes in the next PR? It would much easier for me.

@sobolevnsobolevn changed the titlegh-133196: Improve error message forft"" casegh-133196: Improve error message forft"" andbt"" casesApr 30, 2025
Copy link
Member

@lysnikolaoulysnikolaou left a 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?

@sobolevn
Copy link
MemberAuthor

Now we have prefixes highlighted:
Снимок экрана 2025-04-30 в 15 19 42
Снимок экрана 2025-04-30 в 15 19 12

tomasr8 reacted with thumbs up emoji

@sobolevnsobolevn changed the titlegh-133196: Improve error message forft"" andbt"" casesgh-133197: Improve error message forft"" andbt"" casesApr 30, 2025
Copy link
Member

@lysnikolaoulysnikolaou left a 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.

sobolevn reacted with heart emoji
@sobolevnsobolevn merged commitb451516 intopython:mainApr 30, 2025
45 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@lysnikolaoulysnikolaoulysnikolaou approved these changes

@DangNhutNguyenDangNhutNguyenDangNhutNguyen approved these changes

@pablogsalpablogsalAwaiting requested review from pablogsalpablogsal is a code owner

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@sobolevn@lysnikolaou@DangNhutNguyen

[8]ページ先頭

©2009-2025 Movatter.jp