FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-133197: Improve error message for incompatible string / bytes prefixes by sobolevn · Pull Request #133242 · python/cpython · GitHub

/ cpython Public

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 commented May 1, 2025
edited by bedevere-app Bot
Loading

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):

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

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good! Only one comment inline.

Comment thread Parser/lexer/lexer.c

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM! Thanks @sobolevn!

sobolevn merged commit 1e9cc3d into python:main May 2, 2025

sobolevn commented May 2, 2025

Copy link
Copy Markdown
Member Author

Thanks for the quick review!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL