Skip to content

Commit

Permalink
Clarify a comment for test.support.Py_C_RECURSION_LIMIT to point ou…
Browse files Browse the repository at this point in the history
…t where a value came from but that it doesn't need to stay in sync (python#112224)
  • Loading branch information
brettcannon authored Nov 30, 2023
1 parent 730d450 commit 6d5e0dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,8 @@ def _get_c_recursion_limit():
import _testcapi
return _testcapi.Py_C_RECURSION_LIMIT
except (ImportError, AttributeError):
return 1500 # (from Include/cpython/pystate.h)
# Originally taken from Include/cpython/pystate.h .
return 1500

# The default C recursion limit.
Py_C_RECURSION_LIMIT = _get_c_recursion_limit()
Expand Down

0 comments on commit 6d5e0dc

Please sign in to comment.