Skip to content

gh-129173: refactor PyCodec_ReplaceErrors into separate functions #129893

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

Merged
merged 4 commits into from
Feb 25, 2025

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Feb 9, 2025

We also refactor that handler and extract the logic for each exceptions being handled into separate functions.

We also refactor that handler and extract the logic for each
exceptions being handled into separate functions.
@picnixz picnixz marked this pull request as ready for review February 23, 2025 10:19
@picnixz picnixz requested a review from encukou February 23, 2025 10:19
@AA-Turner AA-Turner changed the title gh-129173: Use new helpers in the replace handler. gh-129173: Use new helpers in the replace handler Feb 24, 2025
Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@picnixz picnixz merged commit fa6a814 into python:main Feb 25, 2025
45 checks passed
@picnixz picnixz deleted the feat/codecs/replace-handler-129173 branch February 25, 2025 13:24
@picnixz picnixz changed the title gh-129173: Use new helpers in the replace handler gh-129173: refactor PyCodec_ReplaceErrors into separate functions Mar 3, 2025
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
…ions (python#129893)

The logic of `PyCodec_ReplaceErrors` is now split into separate functions,
each of which handling a specific exception type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants