Skip to content

Commit 6d5e0dc

Browse files
authored
Clarify a comment for test.support.Py_C_RECURSION_LIMIT to point out where a value came from but that it doesn't need to stay in sync (python#112224)
1 parent 730d450 commit 6d5e0dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/support/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2380,7 +2380,8 @@ def _get_c_recursion_limit():
23802380
import _testcapi
23812381
return _testcapi.Py_C_RECURSION_LIMIT
23822382
except (ImportError, AttributeError):
2383-
return 1500 # (from Include/cpython/pystate.h)
2383+
# Originally taken from Include/cpython/pystate.h .
2384+
return 1500
23842385

23852386
# The default C recursion limit.
23862387
Py_C_RECURSION_LIMIT = _get_c_recursion_limit()

0 commit comments

Comments
 (0)