gh-127691: add type checks when using PyUnicodeError objects (GH-127694)

This commit is contained in:
Bénédikt Tran 2024-12-13 17:16:22 +01:00 committed by GitHub
parent 6446408d42
commit 8bc18182a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 162 additions and 73 deletions

View file

@ -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.