mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
730d450d43
commit
6d5e0dc0e3
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue