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
@@ -5551,15 +5554,15 @@ When an operation would exceed the limit, a :exc:`ValueError` is raised:
5551
5554
>>> _ =int('2'*5432)
5552
5555
Traceback (most recent call last):
5553
5556
...
5554
-
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.
5557
+
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
5555
5558
>>> i =int('2'*4300)
5556
5559
>>> len(str(i))
5557
5560
4300
5558
5561
>>> i_squared = i*i
5559
5562
>>> len(str(i_squared))
5560
5563
Traceback (most recent call last):
5561
5564
...
5562
-
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.
5565
+
ValueError: Exceeds the limit (4300 digits) for integer string conversion; use sys.set_int_max_str_digits() to increase the limit
5563
5566
>>> len(hex(i_squared))
5564
5567
7144
5565
5568
>>> assertint(hex(i_squared), base=16) == i*i # Hexadecimal is unlimited.
0 commit comments