diff options
author | Sergey B Kirpichev <skirpichev@gmail.com> | 2024-11-25 08:29:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-25 00:29:55 -0500 |
commit | c595eae84c7f665eced09ce67a1ad83b7574d6e5 (patch) | |
tree | ff86f2fad73dbf48b66ab8e8639eaf5c25d04921 /Python | |
parent | 17c16aea66b606d66f71ae9af381bc34d0ef3f5f (diff) | |
download | cpython-c595eae84c7f665eced09ce67a1ad83b7574d6e5.tar.gz cpython-c595eae84c7f665eced09ce67a1ad83b7574d6e5.zip |
gh-127238: adjust error message for sys.set_int_max_str_digits() (#127241)
Now it's correct and closer to Python/initconfig.c
Diffstat (limited to 'Python')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index aaef5aa5324..6df297f364c 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -4104,7 +4104,7 @@ _PySys_SetIntMaxStrDigits(int maxdigits) { if (maxdigits != 0 && maxdigits < _PY_LONG_MAX_STR_DIGITS_THRESHOLD) { PyErr_Format( - PyExc_ValueError, "maxdigits must be 0 or larger than %d", + PyExc_ValueError, "maxdigits must be >= %d or 0 for unlimited", _PY_LONG_MAX_STR_DIGITS_THRESHOLD); return -1; } |