File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ struct _ts {
227
227
# define Py_C_RECURSION_LIMIT 1200
228
228
#else
229
229
// This value is duplicated in Lib/test/support/__init__.py
230
- # define Py_C_RECURSION_LIMIT 8000
230
+ # define Py_C_RECURSION_LIMIT 4000
231
231
#endif
232
232
233
233
Original file line number Diff line number Diff line change @@ -2377,7 +2377,7 @@ def _get_c_recursion_limit():
2377
2377
return _testcapi .Py_C_RECURSION_LIMIT
2378
2378
except (ImportError , AttributeError ):
2379
2379
# Originally taken from Include/cpython/pystate.h .
2380
- return 8000
2380
+ return 4000
2381
2381
2382
2382
# The default C recursion limit.
2383
2383
Py_C_RECURSION_LIMIT = _get_c_recursion_limit ()
Original file line number Diff line number Diff line change @@ -1876,7 +1876,7 @@ def fib(n):
1876
1876
1877
1877
if not support .Py_DEBUG :
1878
1878
with support .infinite_recursion ():
1879
- fib (2500 )
1879
+ fib (1250 )
1880
1880
1881
1881
1882
1882
@py_functools .lru_cache ()
You can’t perform that action at this time.
0 commit comments