diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-04-22 15:35:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 15:35:28 (GMT) |
commit | 6ccfa31421393910b52936e0447625db06f2a655 (patch) | |
tree | 825f9f3bcd6c14f5bab82ee08d55988f8748a168 /Misc/NEWS.d | |
parent | 2f233fceae9a0c5e66e439bc0169b36547ba47c3 (diff) | |
download | cpython-6ccfa31421393910b52936e0447625db06f2a655.zip cpython-6ccfa31421393910b52936e0447625db06f2a655.tar.gz cpython-6ccfa31421393910b52936e0447625db06f2a655.tar.bz2 |
gh-90568: Fix exception type for \N with a named sequence in RE (GH-91665)
re.error is now raised instead of TypeError.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-04-18-16-31-33.gh-issue-90568.9kiU7o.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-04-18-16-31-33.gh-issue-90568.9kiU7o.rst b/Misc/NEWS.d/next/Library/2022-04-18-16-31-33.gh-issue-90568.9kiU7o.rst new file mode 100644 index 0000000..4411c71 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-04-18-16-31-33.gh-issue-90568.9kiU7o.rst @@ -0,0 +1,3 @@ +Parsing ``\N`` escapes of Unicode Named Character Sequences in a +:mod:`regular expression <re>` raises now :exc:`re.error` instead of +``TypeError``. |