Skip to content

Commit 0e249c7

Browse files
committed
Try increasing the C recursion limit
1 parent de8a4e5 commit 0e249c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/cpython/pystate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ struct _ts {
225225
# define Py_C_RECURSION_LIMIT 500
226226
#else
227227
// This value is duplicated in Lib/test/support/__init__.py
228-
# define Py_C_RECURSION_LIMIT 1500
228+
# define Py_C_RECURSION_LIMIT 4500
229229
#endif
230230

231231

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2382,7 +2382,7 @@ def _get_c_recursion_limit():
23822382
return _testcapi.Py_C_RECURSION_LIMIT
23832383
except (ImportError, AttributeError):
23842384
# Originally taken from Include/cpython/pystate.h .
2385-
return 1500
2385+
return 4500
23862386

23872387
# The default C recursion limit.
23882388
Py_C_RECURSION_LIMIT = _get_c_recursion_limit()

0 commit comments

Comments
 (0)