This commit is contained in:
blueloveTH 2023-04-14 22:25:10 +08:00
parent e020997305
commit 26a4dfc097
2 changed files with 10 additions and 1 deletions

10
benchmarks/recursive.py Normal file
View File

@ -0,0 +1,10 @@
import sys
sys.setrecursionlimit(10000)
def f(n):
if n == 8000:
return -1
return f(n + 1)
assert f(0) == -1

View File

@ -7,7 +7,6 @@
#include "memory.h" #include "memory.h"
#include "obj.h" #include "obj.h"
#include "str.h" #include "str.h"
#include <memory>
namespace pkpy{ namespace pkpy{