]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-144133: Add a warning to the `encodings.punycode` documentation (GH-151812...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 22 Jun 2026 12:01:59 +0000 (14:01 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2026 12:01:59 +0000 (12:01 +0000)
(cherry picked from commit 7ec70e1df33098de24d4b2cb181586d04cdde441)

Co-authored-by: Stan Ulbrych <stan@python.org>
Doc/library/codecs.rst

index a43e90ee455a5fe290cf4e54510161cf35af5986..cf17e0d34dc2a6544ab36e2706ffb8b4cb9f7b59 100644 (file)
@@ -1396,6 +1396,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     |