From: Brett Cannon Date: Thu, 30 Nov 2023 21:38:10 +0000 (-0800) Subject: Clarify a comment for `test.support.Py_C_RECURSION_LIMIT` to point out where a value... X-Git-Tag: v3.13.0a3~586 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d5e0dc0e330f4009e8dc3d1642e46b129788877;p=thirdparty%2FPython%2Fcpython.git 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) --- diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index eec5498e633e..318a0599a75a 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()