mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-17 09:25:03 +08:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user