diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-03-09 18:03:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 18:03:38 (GMT) |
commit | e5ccc94bbb153431698b2391df625e8d47a93276 (patch) | |
tree | 82c6656cd615dc3ae3311d42d2ef580fa1d8e4d8 /Misc | |
parent | 413f01352a8268fb62bb47bde965462d7b82a06a (diff) | |
download | cpython-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.rst | 2 |
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. |