Skip to content

gh-133197: Improve error message for incompatible string / bytes prefixes#133242

Merged
sobolevn merged 3 commits into
python:mainfrom
sobolevn:issue-133197-2
May 2, 2025
Merged

gh-133197: Improve error message for incompatible string / bytes prefixes#133242
sobolevn merged 3 commits into
python:mainfrom
sobolevn:issue-133197-2

Conversation

@sobolevn

@sobolevn sobolevn commented May 1, 2025

Copy link
Copy Markdown
Member

I decided to only look at two incompatible prefixes at the time. So, here's how debug process looks like (notice that prefixes are highlighted properly):

Снимок экрана 2025-05-01 в 11 05 37

Alternative implementations where all incompatible prefixes are show at the same time is rather complex and not very clear.

@lysnikolaou lysnikolaou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Only one comment inline.

Comment thread Parser/lexer/lexer.c

@lysnikolaou lysnikolaou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @sobolevn!

@sobolevn sobolevn merged commit 1e9cc3d into python:main May 2, 2025
42 checks passed
@sobolevn

sobolevn commented May 2, 2025

Copy link
Copy Markdown
Member Author

Thanks for the quick review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants