Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,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 :exc:`TypeError` if its exception argument is not an
:exc:`UnicodeError`.
(Contributed by Bénédikt Tran in :gh:`127691`.)


Porting to Python 3.14
----------------------

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The :ref:`Unicode Exception Objects <unicodeexceptions>` C API now
type-checks its exception argument, raising a :exc:`TypeError` if
the latter is not an instance of :exc:`UnicodeError`.
Patch by Bénédikt Tran.
Loading
Loading