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

gh-144133: Add a warning to `encodings.punycode` documentation by StanFromIreland · Pull Request #151812 · python/cpython · GitHub

Repository navigation

gh-144133: Add a warning to encodings.punycode documentation - #151812

Merged
StanFromIreland merged 1 commit into
python:mainfrom
StanFromIreland:punycode
Jun 22, 2026
Merged

StanFromIreland merged 1 commit into
python:mainfrom
StanFromIreland:punycode

Conversation

StanFromIreland commented Jun 20, 2026 •
edited
Loading

Copy link
Copy Markdown
Member

The RFC's reference algorithms have quadratic complexity, as it was designed only designed to handle the intended (limited) input, as described in Section 6.4. While some implementations have avoided this general complexity by introducing caps (e.g. ICU), that's a little too drastic for us to do. Rewriting the algorithms is complicated, and people have tried before, however they capitulate as in practice, with appropriate limits (the DNS label length limit is 63), this should not cause issues.

CC @kjd @malemburg

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33229979 | 📁 Comparing 2a80444 against main (1fb874c)

  🔍 Preview build  

1 file changed
± library/codecs.html

StanFromIreland added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Jun 21, 2026
StanFromIreland merged commit 7ec70e1 into python:main Jun 22, 2026
46 checks passed
StanFromIreland deleted the punycode branch June 22, 2026 11:54
github-project-automation Bot moved this from Todo to Done in Docs PRs Jun 22, 2026

Copy link
Copy Markdown

Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

bedevere-app Bot commented Jun 22, 2026

Copy link
Copy Markdown

GH-151922 is a backport of this pull request to the 3.15 branch.

bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Jun 22, 2026

bedevere-app Bot commented Jun 22, 2026

Copy link
Copy Markdown

GH-151923 is a backport of this pull request to the 3.14 branch.

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 22, 2026

bedevere-app Bot commented Jun 22, 2026

Copy link
Copy Markdown

GH-151924 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Jun 22, 2026
StanFromIreland added a commit that referenced this pull request Jun 22, 2026
…tion (GH-151812) (#151923)

(cherry picked from commit 7ec70e1)

Co-authored-by: Stan Ulbrych <stan@python.org>
StanFromIreland added a commit that referenced this pull request Jun 22, 2026
…tion (GH-151812) (#151924)

(cherry picked from commit 7ec70e1)

Co-authored-by: Stan Ulbrych <stan@python.org>
StanFromIreland added a commit that referenced this pull request Jun 22, 2026
…tion (GH-151812) (#151922)

(cherry picked from commit 7ec70e1)

Co-authored-by: Stan Ulbrych <stan@python.org>
pyctrl pushed a commit to pyctrl/cpython that referenced this pull request Jul 5, 2026
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

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL