diff options
author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2024-12-13 16:16:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-13 16:16:22 (GMT) |
commit | 8bc18182a7c28f86265c9d82bd0338137480921c (patch) | |
tree | f5cd49588b391d442e53d47caa06446d7ad345fc /Doc | |
parent | 6446408d426814bf2bc9d3911a91741f04d4bc4e (diff) | |
download | cpython-8bc18182a7c28f86265c9d82bd0338137480921c.zip cpython-8bc18182a7c28f86265c9d82bd0338137480921c.tar.gz cpython-8bc18182a7c28f86265c9d82bd0338137480921c.tar.bz2 |
gh-127691: add type checks when using `PyUnicodeError` objects (GH-127694)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.14.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index 5ce398a..0959492 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -1045,6 +1045,12 @@ New features * Add :c:func:`PyUnstable_Object_EnableDeferredRefcount` for enabling deferred reference counting, as outlined in :pep:`703`. +* The :ref:`Unicode Exception Objects <unicodeexceptions>` C API + now raises a :exc:`TypeError` if its exception argument is not + a :exc:`UnicodeError` object. + (Contributed by Bénédikt Tran in :gh:`127691`.) + + Porting to Python 3.14 ---------------------- |