summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>2024-12-13 16:16:22 (GMT)
committerGitHub <noreply@github.com>2024-12-13 16:16:22 (GMT)
commit8bc18182a7c28f86265c9d82bd0338137480921c (patch)
treef5cd49588b391d442e53d47caa06446d7ad345fc /Misc/NEWS.d
parent6446408d426814bf2bc9d3911a91741f04d4bc4e (diff)
downloadcpython-8bc18182a7c28f86265c9d82bd0338137480921c.zip
cpython-8bc18182a7c28f86265c9d82bd0338137480921c.tar.gz
cpython-8bc18182a7c28f86265c9d82bd0338137480921c.tar.bz2
gh-127691: add type checks when using `PyUnicodeError` objects (GH-127694)
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/C_API/2024-12-06-16-53-34.gh-issue-127691.k_Jitp.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C_API/2024-12-06-16-53-34.gh-issue-127691.k_Jitp.rst b/Misc/NEWS.d/next/C_API/2024-12-06-16-53-34.gh-issue-127691.k_Jitp.rst
new file mode 100644
index 0000000..c942ff3
--- /dev/null
+++ b/Misc/NEWS.d/next/C_API/2024-12-06-16-53-34.gh-issue-127691.k_Jitp.rst
@@ -0,0 +1,3 @@
+The :ref:`Unicode Exception Objects <unicodeexceptions>` C API
+now raises a :exc:`TypeError` if its exception argument is not
+a :exc:`UnicodeError` object. Patch by Bénédikt Tran.