summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-03-09 18:03:38 (GMT)
committerGitHub <noreply@github.com>2020-03-09 18:03:38 (GMT)
commite5ccc94bbb153431698b2391df625e8d47a93276 (patch)
tree82c6656cd615dc3ae3311d42d2ef580fa1d8e4d8 /Misc
parent413f01352a8268fb62bb47bde965462d7b82a06a (diff)
downloadcpython-e5ccc94bbb153431698b2391df625e8d47a93276.zip
cpython-e5ccc94bbb153431698b2391df625e8d47a93276.tar.gz
cpython-e5ccc94bbb153431698b2391df625e8d47a93276.tar.bz2
bpo-38643: Raise SystemError instead of crashing when PyNumber_ToBase is called with invalid base. (GH-18863)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2020-03-08-22-56-22.bpo-38643.k2ixx6.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2020-03-08-22-56-22.bpo-38643.k2ixx6.rst b/Misc/NEWS.d/next/C API/2020-03-08-22-56-22.bpo-38643.k2ixx6.rst
new file mode 100644
index 0000000..1e6472f
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2020-03-08-22-56-22.bpo-38643.k2ixx6.rst
@@ -0,0 +1,2 @@
+:c:func:`PyNumber_ToBase` now raises a :exc:`SystemError` instead of
+crashing when called with invalid base.