mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-127691: add type checks when using PyUnicodeError
objects (GH-127694)
This commit is contained in:
parent
6446408d42
commit
8bc18182a7
3 changed files with 162 additions and 73 deletions
|
@ -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.
|
Loading…
Add table
Add a link
Reference in a new issue