]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-144133: Add a warning to the `encodings.punycode` documentation (#151812)
authorStan Ulbrych <stan@python.org>
Mon, 22 Jun 2026 11:54:26 +0000 (12:54 +0100)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2026 11:54:26 +0000 (12:54 +0100)
Doc/library/codecs.rst

index 059ed2c03acfa38cae02bb8362bfd2327b332dae..99fcf35aa893e42c883526584f92d0f709ea6736 100644 (file)
@@ -1399,6 +1399,14 @@ encodings.
 | punycode           |         | Implement :rfc:`3492`.    |
 |                    |         | Stateful codecs are not   |
 |                    |         | supported.                |
+|                    |         |                           |
+|                    |         | .. warning::              |
+|                    |         |                           |
+|                    |         |    The decoding and       |
+|                    |         |    encoding algorithms    |
+|                    |         |    scale poorly, so       |
+|                    |         |    limit the length of    |
+|                    |         |    untrusted input.       |
 +--------------------+---------+---------------------------+
 | raw_unicode_escape |         | Latin-1 encoding with     |
 |                    |         | :samp:`\\u{XXXX}` and     |