You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -5508,15 +5513,15 @@ When an operation would exceed the limit, a :exc:`ValueError` is raised:
5508
5513
>>> _ =int('2'*5432)
5509
5514
Traceback (most recent call last):
5510
5515
...
5511
-
ValueError: Exceeds the limit (4300 digits) for integer string conversion: value has 5432 digits; use sys.set_int_max_str_digits() to increase the limit.
5516
+
ValueError: Exceeds the limit (4300 digits) for integer string conversion: value has 5432 digits; use sys.set_int_max_str_digits() to increase the limit
5512
5517
>>> i =int('2'*4300)
5513
5518
>>> len(str(i))
5514
5519
4300
5515
5520
>>> i_squared = i*i
5516
5521
>>> len(str(i_squared))
5517
5522
Traceback (most recent call last):
5518
5523
...
5519
-
ValueError: Exceeds the limit (4300 digits) for integer string conversion: value has 8599 digits; use sys.set_int_max_str_digits() to increase the limit.
5524
+
ValueError: Exceeds the limit (4300 digits) for integer string conversion; use sys.set_int_max_str_digits() to increase the limit
5520
5525
>>> len(hex(i_squared))
5521
5526
7144
5522
5527
>>> assertint(hex(i_squared), base=16) == i*i # Hexadecimal is unlimited.
0 commit comments