MCPcopy Index your code
hub / github.com/python/cpython / adjust_int_max_str_digits

Function adjust_int_max_str_digits

Lib/test/support/__init__.py:2799–2806  ·  view source on GitHub ↗

Temporarily change the integer string conversion length limit.

(max_digits)

Source from the content-addressed store, hash-verified

2797
2798@contextlib.contextmanager
2799def adjust_int_max_str_digits(max_digits):
2800 """Temporarily change the integer string conversion length limit."""
2801 current = sys.get_int_max_str_digits()
2802 try:
2803 sys.set_int_max_str_digits(max_digits)
2804 yield
2805 finally:
2806 sys.set_int_max_str_digits(current)
2807
2808
2809def exceeds_recursion_limit():

Callers 1

test_limit_intMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_limit_intMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…