diff options
author | Antoine Pitrou <antoine@python.org> | 2020-04-20 18:54:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 18:54:55 (GMT) |
commit | eba9f6155df59c9beed97fb5764c9f01dd941af0 (patch) | |
tree | f07cef322962795cd4ed0d71f74f9069580b16a5 /Misc | |
parent | 5dd21f5d1c9b5a9316deca4535932675f04efeee (diff) | |
download | cpython-eba9f6155df59c9beed97fb5764c9f01dd941af0.zip cpython-eba9f6155df59c9beed97fb5764c9f01dd941af0.tar.gz cpython-eba9f6155df59c9beed97fb5764c9f01dd941af0.tar.bz2 |
bpo-40330: Fix utf-8 size check in ShareableList (GH-19606)
The item size must be checked after encoding to bytes, not before.
Automerge-Triggered-By: @pitrou
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-04-19-17-31-29.bpo-40330.DGjoIS.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-04-19-17-31-29.bpo-40330.DGjoIS.rst b/Misc/NEWS.d/next/Library/2020-04-19-17-31-29.bpo-40330.DGjoIS.rst new file mode 100644 index 0000000..98cb62f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-04-19-17-31-29.bpo-40330.DGjoIS.rst @@ -0,0 +1,2 @@ +In :meth:`ShareableList.__setitem__`, check the size of a new string item +after encoding it to utf-8, not before. |