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 (#112224)

This commit is contained in:
Brett Cannon 2023-11-30 13:38:10 -08:00 committed by GitHub
parent 730d450d43
commit 6d5e0dc0e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()