Skip to content

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

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

gh-144133: Add a warning to encodings.punycode documentation#151812
StanFromIreland merged 1 commit into
python:mainfrom
StanFromIreland:punycode

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Jun 20, 2026

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

@read-the-docs-community

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 StanFromIreland added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jun 21, 2026
@StanFromIreland StanFromIreland merged commit 7ec70e1 into python:main Jun 22, 2026
46 checks passed
@StanFromIreland StanFromIreland deleted the punycode branch June 22, 2026 11:54
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jun 22, 2026
@miss-islington-app

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

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 bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jun 22, 2026
@bedevere-app

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 bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 22, 2026
@bedevere-app

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 bedevere-app Bot removed the needs backport to 3.13 bugs and 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>
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