Skip to content

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

Open
StanFromIreland wants to merge 1 commit into
python:mainfrom
StanFromIreland:punycode
Open

gh-144133: Add a warning to encodings.punycode documentation#151812
StanFromIreland wants to merge 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants