]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarify a comment for `test.support.Py_C_RECURSION_LIMIT` to point out where a value...
authorBrett Cannon <brett@python.org>
Thu, 30 Nov 2023 21:38:10 +0000 (13:38 -0800)
committerGitHub <noreply@github.com>
Thu, 30 Nov 2023 21:38:10 +0000 (13:38 -0800)
Lib/test/support/__init__.py

index eec5498e633eb68ad4d5fda931abc16893282812..318a0599a75acd78ec373b3109982d726f86db62 100644 (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()