MCPcopy Index your code
hub / github.com/RustPython/RustPython / adjust_int_max_str_digits

Function adjust_int_max_str_digits

Lib/test/support/__init__.py:2729–2736  ·  view source on GitHub ↗

Temporarily change the integer string conversion length limit.

(max_digits)

Source from the content-addressed store, hash-verified

2727
2728@contextlib.contextmanager
2729def adjust_int_max_str_digits(max_digits):
2730 """Temporarily change the integer string conversion length limit."""
2731 current = sys.get_int_max_str_digits()
2732 try:
2733 sys.set_int_max_str_digits(max_digits)
2734 yield
2735 finally:
2736 sys.set_int_max_str_digits(current)
2737
2738
2739def exceeds_recursion_limit():

Callers 1

test_limit_intMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_limit_intMethod · 0.72