From 3e256401c0fd17e47c75191531271e4ecd5ec382 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Mon, 22 Jun 2026 14:02:09 +0200 Subject: [PATCH] [3.13] gh-144133: Add a warning to the `encodings.punycode` documentation (GH-151812) (#151924) (cherry picked from commit 7ec70e1df33098de24d4b2cb181586d04cdde441) Co-authored-by: Stan Ulbrych --- Doc/library/codecs.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 8f3a4768c5ef..e88992917573 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -1385,6 +1385,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 | -- 2.47.3