René's URL Explorer Experiment


Title: gh-129173: Use `_PyUnicodeError_GetParams` in `PyCodec_SurrogateEscapeErrors` by picnixz · Pull Request #129175 · python/cpython · GitHub

Open Graph Title: gh-129173: Use `_PyUnicodeError_GetParams` in `PyCodec_SurrogateEscapeErrors` by picnixz · Pull Request #129175 · python/cpython

X Title: gh-129173: Use `_PyUnicodeError_GetParams` in `PyCodec_SurrogateEscapeErrors` by picnixz · Pull Request #129175 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Issue: Refactor codecs error handlers to use _PyUnicodeError_GetParams and extract complex logic into separate functions #129173

X Description: Issue: Refactor codecs error handlers to use _PyUnicodeError_GetParams and extract complex logic into separate functions #129173

Opengraph URL: https://github.com/python/cpython/pull/129175

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:fe6901f7-bd7e-0971-30f7-008f04db5dbc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD2EC:25E8A1:28D9018:3776DC9:6A544194
html-safe-nonce8f4490eae0af2bfb400d7d59f37b122cd65d235fc1264e0ba0571f1c3da5775d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkVDOjI1RThBMToyOEQ5MDE4OjM3NzZEQzk6NkE1NDQxOTQiLCJ2aXNpdG9yX2lkIjoiMzk0MTgyNDEyMTY1NTI4MDAyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacabf09499104999145c811b005c27419c829efbf94d9e8cb3bd5547bcc50313f7
hovercard-subject-tagpull_request:2292008582
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/129175/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f15ed6a1c138969ccedb511e5f2f70acf4c677b7783e245f1cd980bfb896a7a1/python/cpython/pull/129175
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f15ed6a1c138969ccedb511e5f2f70acf4c677b7783e245f1cd980bfb896a7a1/python/cpython/pull/129175
og:image:altIssue: Refactor codecs error handlers to use _PyUnicodeError_GetParams and extract complex logic into separate functions #129173
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepicnixz
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/129175#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F129175
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F129175
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/129175
Reloadhttps://github.com/python/cpython/pull/129175
Reloadhttps://github.com/python/cpython/pull/129175
Please reload this pagehttps://github.com/python/cpython/pull/129175
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/129175
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
picnixz:feat/codecs/surrogate-escape-handler-129173https://github.com/picnixz/cpython/tree/feat/codecs/surrogate-escape-handler-129173
Conversationhttps://github.com/python/cpython/pull/129175
Commits11 (11)https://github.com/python/cpython/pull/129175/commits
Checkshttps://github.com/python/cpython/pull/129175/checks
Files changedhttps://github.com/python/cpython/pull/129175/files
gh-129173: Use _PyUnicodeError_GetParams in PyCodec_SurrogateEscapeErrorshttps://github.com/python/cpython/pull/129175#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
picnixz:feat/codecs/surrogate-escape-handler-129173https://github.com/picnixz/cpython/tree/feat/codecs/surrogate-escape-handler-129173
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Jan 22, 2025https://github.com/python/cpython/pull/129175#issue-2804124289
Please reload this pagehttps://github.com/python/cpython/pull/129175
Refactor codecs error handlers to use _PyUnicodeError_GetParams and extract complex logic into separate functions #129173https://github.com/python/cpython/issues/129173
Please reload this pagehttps://github.com/python/cpython/pull/129175
https://github.com/picnixz
Use _PyUnicodeError_GetParams for the 'surrogateescape' handlerhttps://github.com/python/cpython/pull/129175/commits/918acdf5ddb4decd58dddb14f64200ee6227586a
918acdfhttps://github.com/python/cpython/pull/129175/commits/918acdf5ddb4decd58dddb14f64200ee6227586a
https://github.com/picnixz
picnixzhttps://github.com/picnixz
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Jan 22, 2025https://github.com/python/cpython/pull/129175#event-16027533036
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 22, 2025 https://github.com/python/cpython/pull/129175#ref-issue-2804099540
Refactor codecs error handlers to use _PyUnicodeError_GetParams and extract complex logic into separate functions #129173 https://github.com/python/cpython/issues/129173
picnixzhttps://github.com/picnixz
January 22, 2025 12:25https://github.com/python/cpython/pull/129175#commits-pushed-758b84e
https://github.com/picnixz
fixuphttps://github.com/python/cpython/pull/129175/commits/758b84e10a3fbce3401fb64ef7105def54aeb3d8
758b84ehttps://github.com/python/cpython/pull/129175/commits/758b84e10a3fbce3401fb64ef7105def54aeb3d8
https://github.com/picnixz
Merge branch 'main' into feat/codecs/surrogate-escape-handler-129173https://github.com/python/cpython/pull/129175/commits/af1077776697676864d4e4eafd51d9590f2430ff
af10777https://github.com/python/cpython/pull/129175/commits/af1077776697676864d4e4eafd51d9590f2430ff
https://github.com/picnixz
Merge remote-tracking branch 'upstream/main' into feat/codecs/surroga…https://github.com/python/cpython/pull/129175/commits/8904a568407f8888e6ced62f35f64f5f3028e441
8904a56https://github.com/python/cpython/pull/129175/commits/8904a568407f8888e6ced62f35f64f5f3028e441
https://github.com/picnixz
post-mergehttps://github.com/python/cpython/pull/129175/commits/1db1dbb308b4c861fa7f3c51fc9d3eeb84f1be6e
1db1dbbhttps://github.com/python/cpython/pull/129175/commits/1db1dbb308b4c861fa7f3c51fc9d3eeb84f1be6e
https://github.com/picnixz
Merge branch 'main' into feat/codecs/surrogate-escape-handler-129173https://github.com/python/cpython/pull/129175/commits/82ef07a5be9c02059edd6031c896e61782ca3f3f
82ef07ahttps://github.com/python/cpython/pull/129175/commits/82ef07a5be9c02059edd6031c896e61782ca3f3f
https://github.com/picnixz
Merge branch 'main' into feat/codecs/surrogate-escape-handler-129173https://github.com/python/cpython/pull/129175/commits/6494cabc9d2d3e36914781de3d427c08419de41b
6494cabhttps://github.com/python/cpython/pull/129175/commits/6494cabc9d2d3e36914781de3d427c08419de41b
https://github.com/picnixz
picnixzhttps://github.com/picnixz
February 14, 2025 18:13https://github.com/python/cpython/pull/129175#event-16315842827
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Feb 14, 2025https://github.com/python/cpython/pull/129175#event-16315843699
https://github.com/picnixz
picnixzhttps://github.com/picnixz
encukouhttps://github.com/encukou
February 14, 2025 18:13https://github.com/python/cpython/pull/129175#event-16315843890
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Feb 14, 2025 https://github.com/python/cpython/pull/129175#pullrequestreview-2618540213
View reviewed changes https://github.com/python/cpython/pull/129175/files/6494cabc9d2d3e36914781de3d427c08419de41b
Python/codecs.chttps://github.com/python/cpython/pull/129175/files/6494cabc9d2d3e36914781de3d427c08419de41b#diff-a22bcb6c26007e5597e92a6abb0a27ce987072fcfa7220623c869044c3097784
Please reload this pagehttps://github.com/python/cpython/pull/129175
https://github.com/picnixz
Restore deleted commenthttps://github.com/python/cpython/pull/129175/commits/067a186f560ee552061c4a73649eb90c75d333f6
067a186https://github.com/python/cpython/pull/129175/commits/067a186f560ee552061c4a73649eb90c75d333f6
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Feb 14, 2025 https://github.com/python/cpython/pull/129175#pullrequestreview-2618541518
View reviewed changes https://github.com/python/cpython/pull/129175/files/067a186f560ee552061c4a73649eb90c75d333f6
Python/codecs.chttps://github.com/python/cpython/pull/129175/files/067a186f560ee552061c4a73649eb90c75d333f6#diff-a22bcb6c26007e5597e92a6abb0a27ce987072fcfa7220623c869044c3097784
Please reload this pagehttps://github.com/python/cpython/pull/129175
https://github.com/picnixz
comment capitalizationhttps://github.com/python/cpython/pull/129175/commits/f88524b243fb22331aadec32537d367fb8634443
f88524bhttps://github.com/python/cpython/pull/129175/commits/f88524b243fb22331aadec32537d367fb8634443
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Feb 14, 2025 https://github.com/python/cpython/pull/129175#pullrequestreview-2618542320
View reviewed changes https://github.com/python/cpython/pull/129175/files/f88524b243fb22331aadec32537d367fb8634443
Python/codecs.chttps://github.com/python/cpython/pull/129175/files/f88524b243fb22331aadec32537d367fb8634443#diff-a22bcb6c26007e5597e92a6abb0a27ce987072fcfa7220623c869044c3097784
Please reload this pagehttps://github.com/python/cpython/pull/129175
https://github.com/picnixz
add period at the end of a sentencehttps://github.com/python/cpython/pull/129175/commits/99204262d05b70c65e4190e2ef821c18e74f051d
9920426https://github.com/python/cpython/pull/129175/commits/99204262d05b70c65e4190e2ef821c18e74f051d
https://github.com/encukou
encukouhttps://github.com/encukou
Feb 17, 2025 https://github.com/python/cpython/pull/129175#pullrequestreview-2621436698
View reviewed changes https://github.com/python/cpython/pull/129175/files/99204262d05b70c65e4190e2ef821c18e74f051d
Python/codecs.chttps://github.com/python/cpython/pull/129175/files/99204262d05b70c65e4190e2ef821c18e74f051d#diff-a22bcb6c26007e5597e92a6abb0a27ce987072fcfa7220623c869044c3097784
Please reload this pagehttps://github.com/python/cpython/pull/129175
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Feb 17, 2025https://github.com/python/cpython/pull/129175#event-16335958046
https://github.com/encukou
Remove obsolete commenthttps://github.com/python/cpython/pull/129175/commits/e7643f0fdd6c757f1d9f2873ce96184a4c6359b5
e7643f0https://github.com/python/cpython/pull/129175/commits/e7643f0fdd6c757f1d9f2873ce96184a4c6359b5
https://github.com/encukou
encukouhttps://github.com/encukou
February 17, 2025 17:00https://github.com/python/cpython/pull/129175#event-16336757552
https://github.com/encukou
encukouhttps://github.com/encukou
e24a1achttps://github.com/python/cpython/commit/e24a1ac17cfd62a94cf7e1e8cf9385fb926adce6
Feb 20, 2025https://github.com/python/cpython/pull/129175#event-16382215368
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Feb 20, 2025https://github.com/python/cpython/pull/129175#event-16382216244
https://github.com/picnixz
picnixzhttps://github.com/picnixz
February 21, 2025 12:37https://github.com/python/cpython/pull/129175#event-16399690412
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F129175
https://github.com/encukou
encukou https://github.com/encukou
https://github.com/python/cpython/pull/129175/files/99204262d05b70c65e4190e2ef821c18e74f051d
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/129175
https://github.com/picnixz
https://github.com/encukou
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.