summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-09-16 18:04:37 (GMT)
committerGitHub <noreply@github.com>2022-09-16 18:04:37 (GMT)
commite841ffc915e82e5ea6e3b473205417d63494808d (patch)
treea7e63fa84836f4d41ce47b01658e5e5e591dd24c /Misc
parent426d72e7ddb0af5cf851914ac75127186dd1ff04 (diff)
downloadcpython-e841ffc915e82e5ea6e3b473205417d63494808d.zip
cpython-e841ffc915e82e5ea6e3b473205417d63494808d.tar.gz
cpython-e841ffc915e82e5ea6e3b473205417d63494808d.tar.bz2
gh-95778: Mention sys.set_int_max_str_digits() in error message (#96874)
When ValueError is raised if an integer is larger than the limit, mention sys.set_int_max_str_digits() in the error message.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2022-09-16-19-02-40.gh-issue-95778.cJmnst.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-09-16-19-02-40.gh-issue-95778.cJmnst.rst b/Misc/NEWS.d/next/Core and Builtins/2022-09-16-19-02-40.gh-issue-95778.cJmnst.rst
new file mode 100644
index 0000000..ebf6377
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2022-09-16-19-02-40.gh-issue-95778.cJmnst.rst
@@ -0,0 +1,3 @@
+When :exc:`ValueError` is raised if an integer is larger than the limit,
+mention the :func:`sys.set_int_max_str_digits` function in the error message.
+Patch by Victor Stinner.