diff options
author | Victor Stinner <vstinner@python.org> | 2022-09-16 18:04:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-16 18:04:37 (GMT) |
commit | e841ffc915e82e5ea6e3b473205417d63494808d (patch) | |
tree | a7e63fa84836f4d41ce47b01658e5e5e591dd24c /Misc | |
parent | 426d72e7ddb0af5cf851914ac75127186dd1ff04 (diff) | |
download | cpython-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.rst | 3 |
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. |