summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-10-10 10:15:12 (GMT)
committerGitHub <noreply@github.com>2023-10-10 10:15:12 (GMT)
commit344d3a222a7864f8157773749bdd77d1c9dfc1e6 (patch)
treedf48ad12a6ebd272c12be11e7463966098ad4c48 /Misc
parent0362cbf908aff2b87298f8a9422e7b368f890071 (diff)
downloadcpython-344d3a222a7864f8157773749bdd77d1c9dfc1e6.zip
cpython-344d3a222a7864f8157773749bdd77d1c9dfc1e6.tar.gz
cpython-344d3a222a7864f8157773749bdd77d1c9dfc1e6.tar.bz2
gh-110590: Fix a bug where _sre.compile would overwrite exceptions (#110591)
TypeError would be overwritten by OverflowError if 'code' param contained non-ints.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-10-10-10-46-55.gh-issue-110590.fatz-h.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-10-10-10-46-55.gh-issue-110590.fatz-h.rst b/Misc/NEWS.d/next/Library/2023-10-10-10-46-55.gh-issue-110590.fatz-h.rst
new file mode 100644
index 0000000..20dc3ff
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-10-10-10-46-55.gh-issue-110590.fatz-h.rst
@@ -0,0 +1,3 @@
+Fix a bug in :meth:`!_sre.compile` where :exc:`TypeError`
+would be overwritten by :exc:`OverflowError` when
+the *code* argument was a list of non-ints.