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.
This commit is contained in:
Dave Halter
2017-09-18 10:26:42 +02:00
parent c7dbf95344
commit 260aef943a

View File

@@ -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):