From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 22 Jun 2026 12:01:59 +0000 (+0200) Subject: [3.14] gh-144133: Add a warning to the `encodings.punycode` documentation (GH-151812... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dab14f443402c564f3cb9ceaa56fb5afa5e121e6;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-144133: Add a warning to the `encodings.punycode` documentation (GH-151812) (#151923) (cherry picked from commit 7ec70e1df33098de24d4b2cb181586d04cdde441) Co-authored-by: Stan Ulbrych --- diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index a43e90ee455a..cf17e0d34dc2 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -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 |