# Integer string conversion limit: ValueError: Exceeds the limit (4300 digits) for integer string conversion: value has 5000 digits (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/integer-string-conversion-limit-valueerror-exceeds-the-limit-4300-digits-for-integer-string-2789318d7bba
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, valueerror, int

int('9'*5000) gives that text ending '; use sys.set_int_max_str_digits() to increase the limit'. str(10**5000) gives the same without 'value has N digits'. format(10**5000,'d') also raises. sys.get_int_max_str_digits() == 4300.
