From c4ad01e84570a58a559e66505348623e93e71c40 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Mon, 22 Jun 2026 12:54:26 +0100 Subject: [PATCH] gh-144133: Add a warning to the `encodings.punycode` documentation (GH-151812) (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 059ed2c03acfa38..99fcf35aa893e42 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -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 |