summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-08-04 10:25:51 (GMT)
committerGitHub <noreply@github.com>2023-08-04 10:25:51 (GMT)
commit98902d6c0522df022d2f88499faf9774970e2838 (patch)
tree3c5919fae5314286a774ae9ebe8e682a4b5d50c5 /Doc/whatsnew
parent58af2293c52a1ad3754d254690c0e54f787c545b (diff)
downloadcpython-98902d6c0522df022d2f88499faf9774970e2838.zip
cpython-98902d6c0522df022d2f88499faf9774970e2838.tar.gz
cpython-98902d6c0522df022d2f88499faf9774970e2838.tar.bz2
[3.12] GH-107263: Increase C stack limit for most functions, except `_PyEval_EvalFrameDefault()` (GH-107535) (#107618)
GH-107263: Increase C stack limit for most functions, except `_PyEval_EvalFrameDefault()` (GH-107535) * Set C recursion limit to 1500, set cost of eval loop to 2 frames, and compiler mutliply to 2. (cherry picked from commit fa45958450aa3489607daf9855ca0474a2a20878) Co-authored-by: Mark Shannon <mark@hotpy.org>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 39e702b..79e6185 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -802,6 +802,11 @@ sys
exception instance, rather than to a ``(typ, exc, tb)`` tuple.
(Contributed by Irit Katriel in :gh:`103176`.)
+* :func:`sys.setrecursionlimit` and :func:`sys.getrecursionlimit`.
+ The recursion limit now applies only to Python code. Builtin functions do
+ not use the recursion limit, but are protected by a different mechanism
+ that prevents recursion from causing a virtual machine crash.
+
tempfile
--------