Skip to content

Commit dab14f4

Browse files
[3.14] gh-144133: Add a warning to the encodings.punycode documentation (GH-151812) (#151923)
(cherry picked from commit 7ec70e1) Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent b078ae9 commit dab14f4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Doc/library/codecs.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,14 @@ encodings.
13961396
| punycode | | Implement :rfc:`3492`. |
13971397
| | | Stateful codecs are not |
13981398
| | | supported. |
1399+
| | | |
1400+
| | | .. warning:: |
1401+
| | | |
1402+
| | | The decoding and |
1403+
| | | encoding algorithms |
1404+
| | | scale poorly, so |
1405+
| | | limit the length of |
1406+
| | | untrusted input. |
13991407
+--------------------+---------+---------------------------+
14001408
| raw_unicode_escape | | Latin-1 encoding with |
14011409
| | | :samp:`\\u{XXXX}` and |

0 commit comments

Comments
 (0)