diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-12 11:39:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 11:39:54 (GMT) |
commit | 935ef593211a627526b2b869ce1fc2a5e67e6cdd (patch) | |
tree | 62875b252f6d9843c6cedcd9c1ee50f340c8b8c6 /Objects/longobject.c | |
parent | 70be5e42f6e288de32e0df3c77ac22a9ddf1a74b (diff) | |
download | cpython-935ef593211a627526b2b869ce1fc2a5e67e6cdd.zip cpython-935ef593211a627526b2b869ce1fc2a5e67e6cdd.tar.gz cpython-935ef593211a627526b2b869ce1fc2a5e67e6cdd.tar.bz2 |
clarify the 4300-digit limit on int-str conversion (#100175)
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index c84b4d3..8596ce9 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -36,8 +36,8 @@ medium_value(PyLongObject *x) #define IS_SMALL_INT(ival) (-_PY_NSMALLNEGINTS <= (ival) && (ival) < _PY_NSMALLPOSINTS) #define IS_SMALL_UINT(ival) ((ival) < _PY_NSMALLPOSINTS) -#define _MAX_STR_DIGITS_ERROR_FMT_TO_INT "Exceeds the limit (%d) for integer string conversion: value has %zd digits; use sys.set_int_max_str_digits() to increase the limit" -#define _MAX_STR_DIGITS_ERROR_FMT_TO_STR "Exceeds the limit (%d) for integer string conversion; use sys.set_int_max_str_digits() to increase the limit" +#define _MAX_STR_DIGITS_ERROR_FMT_TO_INT "Exceeds the limit (%d digits) for integer string conversion: value has %zd digits; use sys.set_int_max_str_digits() to increase the limit" +#define _MAX_STR_DIGITS_ERROR_FMT_TO_STR "Exceeds the limit (%d digits) for integer string conversion; use sys.set_int_max_str_digits() to increase the limit" /* If defined, use algorithms from the _pylong.py module */ #define WITH_PYLONG_MODULE 1 |