René's URL Explorer Experiment


Title: gh-157675: Add *limit* argument to encodings.idna.nameprep by encukou · Pull Request #157682 · python/cpython · GitHub

Open Graph Title: gh-157675: Add *limit* argument to encodings.idna.nameprep by encukou · Pull Request #157682 · python/cpython

X Title: gh-157675: Add *limit* argument to encodings.idna.nameprep by encukou · Pull Request #157682 · python/cpython

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

Open Graph Description: Add a limit argument to nameprep to allow ToASCII and ToUnicode to reject extremely large input early. This replaces the check in #99092, while allowing any number of harmless "characters mapp...

X Description: Add a limit argument to nameprep to allow ToASCII and ToUnicode to reject extremely large input early. This replaces the check in #99092, while allowing any number of harmless "characters ...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:b19a9dc7-715a-7f29-0172-1a2a6ce4a745
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F5C:3B07B3:BC1BC3:EBF740:6B022641
html-safe-nonce7d4a6fa3eed307ae0105c9d0fd8c063a2926d69c3ac1ed0e726011a905038cef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjVDOjNCMDdCMzpCQzFCQzM6RUJGNzQwOjZCMDIyNjQxIiwidmlzaXRvcl9pZCI6IjY1NjE5MjYzMTQ1MTU4OTk5NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdaac920984f64d72bef4f619be126b0d8ae4789946a84cf7e9d407464e063a4f
hovercard-subject-tagpull_request:4558960270
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/157682/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0bf60672d2ce70e5021d4bc7d7c819208e2a6b06a2e234d05df56d65c99a4c02/python/cpython/pull/157682
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0bf60672d2ce70e5021d4bc7d7c819208e2a6b06a2e234d05df56d65c99a4c02/python/cpython/pull/157682
og:image:altAdd a limit argument to nameprep to allow ToASCII and ToUnicode to reject extremely large input early. This replaces the check in #99092, while allowing any number of harmless "characters mapp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameencukou
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/157682#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157682
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157682
Sign uphttps://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/157682
Reloadhttps://github.com/python/cpython/pull/157682
Reloadhttps://github.com/python/cpython/pull/157682
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:long-idnahttps://github.com/encukou/cpython/tree/long-idna
Conversationhttps://github.com/python/cpython/pull/157682
Commits3 (3)https://github.com/python/cpython/pull/157682/commits
Checkshttps://github.com/python/cpython/pull/157682/checks
Files changedhttps://github.com/python/cpython/pull/157682/files
gh-157675: Add *limit* argument to encodings.idna.nameprephttps://github.com/python/cpython/pull/157682#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:long-idnahttps://github.com/encukou/cpython/tree/long-idna
https://github.com/encukou
encukouhttps://github.com/encukou
Sep 17, 2026https://github.com/python/cpython/pull/157682#issue-5487999187
Please reload this pagehttps://github.com/python/cpython/pull/157682
#99092https://github.com/python/cpython/pull/99092
Slow IDNA encoding with large strings #157675https://github.com/python/cpython/issues/157675
Please reload this pagehttps://github.com/python/cpython/pull/157682
https://github.com/encukou
pythongh-157675https://github.com/python/cpython/issues/157675
: Add *limit* argument to encodings.idna.nameprephttps://github.com/python/cpython/pull/157682/commits/8337557661b5c1ff66e871e62b9a3bd9b4713105
8337557https://github.com/python/cpython/pull/157682/commits/8337557661b5c1ff66e871e62b9a3bd9b4713105
python#99092https://github.com/python/cpython/pull/99092
https://github.com/encukou
encukouhttps://github.com/encukou
StanFromIrelandhttps://github.com/StanFromIreland
gpsheadhttps://github.com/gpshead
September 17, 2026 13:28https://github.com/python/cpython/pull/157682#event-31322784505
https://github.com/encukou
encukouhttps://github.com/encukou
AA-Turnerhttps://github.com/AA-Turner
code ownerhttps://github.com/python/cpython/blob/1e03154546c5c1af5c0c746a2bdedc758acdec93/.github/CODEOWNERS#L116
September 17, 2026 13:28https://github.com/python/cpython/pull/157682#event-31322785327
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 17, 2026 https://github.com/python/cpython/pull/157682#ref-issue-5486714680
Slow IDNA encoding with large strings #157675 https://github.com/python/cpython/issues/157675
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
Sep 17, 2026https://github.com/python/cpython/pull/157682#event-31322793722
https://github.com/apps/read-the-docs-community
read-the-docs-communityhttps://github.com/apps/read-the-docs-community
Sep 17, 2026https://github.com/python/cpython/pull/157682#issuecomment-5715273276
Please reload this pagehttps://github.com/python/cpython/pull/157682
cpython-previewshttps://app.readthedocs.org/projects/cpython-previews/
#34628266https://app.readthedocs.org/projects/cpython-previews/builds/34628266/
6696e82https://github.com/python/cpython/commit/6696e82ef68f4f3e596c02b258902a91cfce7b47
mainhttps://cpython-previews.readthedocs.io/en/main/
1e03154https://github.com/python/cpython/commit/1e03154546c5c1af5c0c746a2bdedc758acdec93
  🔍 Preview build   https://cpython-previews--157682.org.readthedocs.build/en/157682/
c-api/bytes.htmlhttps://cpython-previews--157682.org.readthedocs.build/en/157682/c-api/bytes.html
c-api/unicode.htmlhttps://cpython-previews--157682.org.readthedocs.build/en/157682/c-api/unicode.html
library/codecs.htmlhttps://cpython-previews--157682.org.readthedocs.build/en/157682/library/codecs.html
library/importlib.htmlhttps://cpython-previews--157682.org.readthedocs.build/en/157682/library/importlib.html
whatsnew/3.16.htmlhttps://cpython-previews--157682.org.readthedocs.build/en/157682/whatsnew/3.16.html
whatsnew/changelog.htmlhttps://cpython-previews--157682.org.readthedocs.build/en/157682/whatsnew/changelog.html
Please reload this pagehttps://github.com/python/cpython/pull/157682
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
Sep 17, 2026 https://github.com/python/cpython/pull/157682#pullrequestreview-5236457616
View reviewed changes https://github.com/python/cpython/pull/157682/files/8337557661b5c1ff66e871e62b9a3bd9b4713105
Lib/encodings/idna.pyhttps://github.com/python/cpython/pull/157682/files/8337557661b5c1ff66e871e62b9a3bd9b4713105#diff-91bf9852343bf8a6f898248b859b8f425e93105e2af7ab32320b5d087e3b89ce
Please reload this pagehttps://github.com/python/cpython/pull/157682
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Sep 17, 2026 https://github.com/python/cpython/pull/157682#pullrequestreview-5238274583
View reviewed changes https://github.com/python/cpython/pull/157682/files/8337557661b5c1ff66e871e62b9a3bd9b4713105
Lib/encodings/idna.pyhttps://github.com/python/cpython/pull/157682/files/8337557661b5c1ff66e871e62b9a3bd9b4713105#diff-91bf9852343bf8a6f898248b859b8f425e93105e2af7ab32320b5d087e3b89ce
StanFromIrelandhttps://github.com/StanFromIreland
Sep 17, 2026https://github.com/python/cpython/pull/157682#discussion_r4038906512
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
cpython/Lib/encodings/idna.pyhttps://github.com/python/cpython/blob/8759666e4c00d7b7bcf47bf44dd470b04ab5f708/Lib/encodings/idna.py#L263
8759666https://github.com/python/cpython/commit/8759666e4c00d7b7bcf47bf44dd470b04ab5f708
Please reload this pagehttps://github.com/python/cpython/pull/157682
encukouhttps://github.com/encukou
Sep 17, 2026https://github.com/python/cpython/pull/157682#discussion_r4039285509
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/157682
encukouhttps://github.com/encukou
Sep 21, 2026https://github.com/python/cpython/pull/157682#discussion_r4062331400
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/157682
https://github.com/encukou
encukouhttps://github.com/encukou
September 17, 2026 16:37https://github.com/python/cpython/pull/157682#event-31335302063
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
Sep 17, 2026https://github.com/python/cpython/pull/157682#event-31335304844
https://github.com/encukou
Apply strict limit before punycode decodinghttps://github.com/python/cpython/pull/157682/commits/6696e82ef68f4f3e596c02b258902a91cfce7b47
6696e82https://github.com/python/cpython/pull/157682/commits/6696e82ef68f4f3e596c02b258902a91cfce7b47
https://github.com/encukou
encukouhttps://github.com/encukou
September 18, 2026 08:24https://github.com/python/cpython/pull/157682#event-31377202305
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
Sep 18, 2026https://github.com/python/cpython/pull/157682#event-31377204868
https://github.com/sprajs
sprajshttps://github.com/sprajs
Sep 19, 2026 https://github.com/python/cpython/pull/157682#pullrequestreview-5253977081
View reviewed changes https://github.com/python/cpython/pull/157682/files/6696e82ef68f4f3e596c02b258902a91cfce7b47
sprajshttps://github.com/sprajs
https://github.com/python/cpython/pull/157682#pullrequestreview-5253977081
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/157682
https://github.com/encukou
encukouhttps://github.com/encukou
Sep 22, 2026https://github.com/python/cpython/pull/157682#issuecomment-5776157739
Please reload this pagehttps://github.com/python/cpython/pull/157682
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Sep 23, 2026 https://github.com/python/cpython/pull/157682#pullrequestreview-5293450406
View reviewed changes https://github.com/python/cpython/pull/157682/files/6696e82ef68f4f3e596c02b258902a91cfce7b47
Doc/library/codecs.rsthttps://github.com/python/cpython/pull/157682/files/6696e82ef68f4f3e596c02b258902a91cfce7b47#diff-190e75a7d61eeac945b2802a8a7984cc20950fb0f4af08cfb17b590d50f86ca0
Please reload this pagehttps://github.com/python/cpython/pull/157682
Doc/library/codecs.rsthttps://github.com/python/cpython/pull/157682/files/6696e82ef68f4f3e596c02b258902a91cfce7b47#diff-190e75a7d61eeac945b2802a8a7984cc20950fb0f4af08cfb17b590d50f86ca0
Please reload this pagehttps://github.com/python/cpython/pull/157682
https://github.com/encukou
https://github.com/StanFromIreland
Apply batched suggestions from code reviewhttps://github.com/python/cpython/pull/157682/commits/5408280c703a110f72df81bb5b6461c9b8b969ad
5408280https://github.com/python/cpython/pull/157682/commits/5408280c703a110f72df81bb5b6461c9b8b969ad
https://github.com/encukou
encukouhttps://github.com/encukou
f7586aahttps://github.com/python/cpython/commit/f7586aa88dbaf3f4bd515e972b82f530820795a9
Oct 2, 2026https://github.com/python/cpython/pull/157682#event-32335992059
Please reload this pagehttps://github.com/python/cpython/pull/157682
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
Oct 2, 2026https://github.com/python/cpython/pull/157682#event-32335996005
https://github.com/encukou
encukouhttps://github.com/encukou
October 2, 2026 13:11https://github.com/python/cpython/pull/157682#event-32335997768
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%2F157682
https://github.com/sethmlarson
sethmlarson https://github.com/sethmlarson
https://github.com/python/cpython/pull/157682/files/8337557661b5c1ff66e871e62b9a3bd9b4713105
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
https://github.com/python/cpython/pull/157682/files/6696e82ef68f4f3e596c02b258902a91cfce7b47
https://github.com/gpshead
gpshead https://github.com/gpshead
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/sprajs
sprajs https://github.com/sprajs
https://github.com/python/cpython/pull/157682/files/6696e82ef68f4f3e596c02b258902a91cfce7b47
Please reload this pagehttps://github.com/python/cpython/pull/157682
Please reload this pagehttps://github.com/python/cpython/pull/157682
https://github.com/encukou
https://github.com/sprajs
https://github.com/sethmlarson
https://github.com/StanFromIreland
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.