René's URL Explorer Experiment


Title: gh-129173: refactor `PyCodec_ReplaceErrors` into separate functions by picnixz · Pull Request #129893 · python/cpython · GitHub

Open Graph Title: gh-129173: refactor `PyCodec_ReplaceErrors` into separate functions by picnixz · Pull Request #129893 · python/cpython

X Title: gh-129173: refactor `PyCodec_ReplaceErrors` into separate functions by picnixz · Pull Request #129893 · python/cpython

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

Open Graph Description: We also refactor that handler and extract the logic for each exceptions being handled into separate functions. Issue: Refactor codecs error handlers to use _PyUnicodeError_GetParams and extract ...

X Description: We also refactor that handler and extract the logic for each exceptions being handled into separate functions. Issue: Refactor codecs error handlers to use _PyUnicodeError_GetParams and extract ...

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

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:a1f703b6-568f-578b-3686-54d2c7d5009b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9DDC:20C5C6:3052DC:317316:6A558E05
html-safe-nonced57f108873dbe7bc890a162d38bfe4e087e97081797f2677527ba379f743317e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RERDOjIwQzVDNjozMDUyREM6MzE3MzE2OjZBNTU4RTA1IiwidmlzaXRvcl9pZCI6IjQ3NzQ2MjMzMzU1MjYyNzI1MTciLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ==
visitor-hmac2da04257c6fd3e9b8708a73f44038767f50023b9bfd1bb7763f09bcb98c9232a
hovercard-subject-tagpull_request:2324495297
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/129893/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/da9c95a24c379873942f8b708efdca723a8716ad433c2a4a94e0d38e0bafd782/python/cpython/pull/129893
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/da9c95a24c379873942f8b708efdca723a8716ad433c2a4a94e0d38e0bafd782/python/cpython/pull/129893
og:image:altWe also refactor that handler and extract the logic for each exceptions being handled into separate functions. Issue: Refactor codecs error handlers to use _PyUnicodeError_GetParams and extract ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepicnixz
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
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
releaseaa21baa44893467b0b640d0300538f84ca8c475b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/129893#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F129893
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%2F129893
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/129893
Reloadhttps://github.com/python/cpython/pull/129893
Reloadhttps://github.com/python/cpython/pull/129893
Please reload this pagehttps://github.com/python/cpython/pull/129893
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/129893
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
picnixzhttps://github.com/picnixz
python:mainhttps://github.com/python/cpython/tree/main
picnixz:feat/codecs/replace-handler-129173https://github.com/picnixz/cpython/tree/feat/codecs/replace-handler-129173
Conversationhttps://github.com/python/cpython/pull/129893
Commits4 (4)https://github.com/python/cpython/pull/129893/commits
Checkshttps://github.com/python/cpython/pull/129893/checks
Files changedhttps://github.com/python/cpython/pull/129893/files
gh-129173: refactor PyCodec_ReplaceErrors into separate functionshttps://github.com/python/cpython/pull/129893#top
picnixzhttps://github.com/picnixz
python:mainhttps://github.com/python/cpython/tree/main
picnixz:feat/codecs/replace-handler-129173https://github.com/picnixz/cpython/tree/feat/codecs/replace-handler-129173
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Feb 9, 2025https://github.com/python/cpython/pull/129893#issue-2840647720
Please reload this pagehttps://github.com/python/cpython/pull/129893
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/129893
https://github.com/picnixz
Use new helpers in the replace handler.https://github.com/python/cpython/pull/129893/commits/eb2237a441628da448bf23f3bc151fc6d3697739
eb2237ahttps://github.com/python/cpython/pull/129893/commits/eb2237a441628da448bf23f3bc151fc6d3697739
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Feb 9, 2025 https://github.com/python/cpython/pull/129893#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
https://github.com/picnixz
picnixzhttps://github.com/picnixz
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Feb 9, 2025https://github.com/python/cpython/pull/129893#event-16238153293
https://github.com/picnixz
Merge remote-tracking branch 'upstream/main' into feat/codecs/replace…https://github.com/python/cpython/pull/129893/commits/1e6aa84f0999737aea6f943459ba69d33a20e6a6
1e6aa84https://github.com/python/cpython/pull/129893/commits/1e6aa84f0999737aea6f943459ba69d33a20e6a6
https://github.com/picnixz
picnixzhttps://github.com/picnixz
February 23, 2025 10:19https://github.com/python/cpython/pull/129893#event-16418710400
https://github.com/picnixz
picnixzhttps://github.com/picnixz
encukouhttps://github.com/encukou
February 23, 2025 10:19https://github.com/python/cpython/pull/129893#event-16418710485
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 23, 2025https://github.com/python/cpython/pull/129893#event-16418710511
https://github.com/picnixz
PEP-7https://github.com/python/cpython/pull/129893/commits/aaa1e4a3bfce0337f7da192b49146fc9caf64ffb
aaa1e4ahttps://github.com/python/cpython/pull/129893/commits/aaa1e4a3bfce0337f7da192b49146fc9caf64ffb
https://github.com/encukou
encukouhttps://github.com/encukou
Feb 24, 2025 https://github.com/python/cpython/pull/129893#pullrequestreview-2636668919
View reviewed changes https://github.com/python/cpython/pull/129893/files/aaa1e4a3bfce0337f7da192b49146fc9caf64ffb
Python/codecs.chttps://github.com/python/cpython/pull/129893/files/aaa1e4a3bfce0337f7da192b49146fc9caf64ffb#diff-a22bcb6c26007e5597e92a6abb0a27ce987072fcfa7220623c869044c3097784
Please reload this pagehttps://github.com/python/cpython/pull/129893
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Feb 24, 2025https://github.com/python/cpython/pull/129893#event-16430828918
https://github.com/encukou
encukouhttps://github.com/encukou
Feb 24, 2025 https://github.com/python/cpython/pull/129893#pullrequestreview-2637103534
View reviewed changes https://github.com/python/cpython/pull/129893/files/aaa1e4a3bfce0337f7da192b49146fc9caf64ffb
Python/codecs.chttps://github.com/python/cpython/pull/129893/files/aaa1e4a3bfce0337f7da192b49146fc9caf64ffb#diff-a22bcb6c26007e5597e92a6abb0a27ce987072fcfa7220623c869044c3097784
Please reload this pagehttps://github.com/python/cpython/pull/129893
https://github.com/picnixz
create utility for creating a string with N copies of 0xFFFDhttps://github.com/python/cpython/pull/129893/commits/d78e395a0e61bec6f251211f5012498060057153
d78e395https://github.com/python/cpython/pull/129893/commits/d78e395a0e61bec6f251211f5012498060057153
https://github.com/encukou
encukouhttps://github.com/encukou
Feb 25, 2025 https://github.com/python/cpython/pull/129893#pullrequestreview-2640740633
View reviewed changes https://github.com/python/cpython/pull/129893/files/d78e395a0e61bec6f251211f5012498060057153
encukouhttps://github.com/encukou
https://github.com/python/cpython/pull/129893#pullrequestreview-2640740633
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/129893
Python/codecs.chttps://github.com/python/cpython/pull/129893/files/d78e395a0e61bec6f251211f5012498060057153#diff-a22bcb6c26007e5597e92a6abb0a27ce987072fcfa7220623c869044c3097784
Please reload this pagehttps://github.com/python/cpython/pull/129893
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 25, 2025https://github.com/python/cpython/pull/129893#event-16455320297
https://github.com/picnixz
picnixzhttps://github.com/picnixz
fa6a814https://github.com/python/cpython/commit/fa6a8140dd2a72da6df2a7dfafbf07045debf64d
Feb 25, 2025https://github.com/python/cpython/pull/129893#event-16458943608
https://github.com/picnixz
picnixzhttps://github.com/picnixz
February 25, 2025 13:24https://github.com/python/cpython/pull/129893#event-16458944472
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 25, 2025https://github.com/python/cpython/pull/129893#event-16458944496
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Mar 3, 2025https://github.com/python/cpython/pull/129893#event-16533666400
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%2F129893
https://github.com/encukou
encukou https://github.com/encukou
https://github.com/python/cpython/pull/129893/files/d78e395a0e61bec6f251211f5012498060057153
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/129893
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.