We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0d219c commit 307a395Copy full SHA for 307a395
2 files changed
ChangeLog
@@ -20,6 +20,9 @@ Release date: TBA
20
21
Closes PyCQA/pylint#8074
22
23
+* Set a higher recursion limit at ``2**12``, instead of ``1000``
24
+ to prevent accidental ``RecursionErrors``.
25
+
26
27
What's New in astroid 2.13.3?
28
=============================
astroid/__init__.py
@@ -31,6 +31,7 @@
31
"""
32
33
import functools
34
+import sys
35
import tokenize
36
from importlib import import_module
37
@@ -191,6 +192,9 @@
191
192
):
193
tokenize._compile = functools.lru_cache()(tokenize._compile) # type: ignore[attr-defined]
194
195
+# Set a higher recursion limit. 10**3 is a bit low. Especially for PyPy.
196
+sys.setrecursionlimit(2**12)
197
198
# load brain plugins
199
for module in BRAIN_MODULES_DIRECTORY.iterdir():
200
if module.suffix == ".py":
0 commit comments