From 260aef943a092f35c3dd15617fce1e50d84274c4 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 18 Sep 2017 10:26:42 +0200 Subject: [PATCH] Increase Python's recursion limit Currently there is still the possiblity that Jedi fails with a recursion error, because the stack is too small. (see #861) By increasing it we improve the situation. Probably we should just be switching away from this extreme amount of recursion and move to queueing which would also allow to use other algorithms such as breadth-first-search. --- jedi/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/api/__init__.py b/jedi/api/__init__.py index 9e0ef6a7..e75690b5 100644 --- a/jedi/api/__init__.py +++ b/jedi/api/__init__.py @@ -37,7 +37,7 @@ from jedi.evaluate.filters import TreeNameDefinition # Jedi uses lots and lots of recursion. By setting this a little bit higher, we # can remove some "maximum recursion depth" errors. -sys.setrecursionlimit(2000) +sys.setrecursionlimit(3000) class NotFoundError(Exception):