summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2023-11-30 21:38:10 (GMT)
committerGitHub <noreply@github.com>2023-11-30 21:38:10 (GMT)
commit6d5e0dc0e330f4009e8dc3d1642e46b129788877 (patch)
tree9ae89b3a7b55e72cbf926a00a0893f495b0825e2
parent730d450d4334978f07e3cf39e1b320f2954e7963 (diff)
downloadcpython-6d5e0dc0e330f4009e8dc3d1642e46b129788877.zip
cpython-6d5e0dc0e330f4009e8dc3d1642e46b129788877.tar.gz
cpython-6d5e0dc0e330f4009e8dc3d1642e46b129788877.tar.bz2
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)
-rw-r--r--Lib/test/support/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index eec5498..318a059 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -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()