summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/IDLE
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-07-06 12:54:17 (GMT)
committerGitHub <noreply@github.com>2019-07-06 12:54:17 (GMT)
commitd4af55391f56286ab8d478591017174a5a0a5ce2 (patch)
treee2bbbb3535f87d3286a25beb90f2dc29f0d43d87 /Misc/NEWS.d/next/IDLE
parentea9c8caa13977561787bf2de430f18c2031dde0d (diff)
downloadcpython-d4af55391f56286ab8d478591017174a5a0a5ce2.zip
cpython-d4af55391f56286ab8d478591017174a5a0a5ce2.tar.gz
cpython-d4af55391f56286ab8d478591017174a5a0a5ce2.tar.bz2
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
This is done to compensate for the extra stack frames added by IDLE itself, which cause problems when setting the recursion limit to low values. This wraps sys.setrecursionlimit() and sys.getrecursionlimit() as invisibly as possible. (cherry picked from commit fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Diffstat (limited to 'Misc/NEWS.d/next/IDLE')
-rw-r--r--Misc/NEWS.d/next/IDLE/2019-06-10-22-48-50.bpo-26806.Zltkum.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/IDLE/2019-06-10-22-48-50.bpo-26806.Zltkum.rst b/Misc/NEWS.d/next/IDLE/2019-06-10-22-48-50.bpo-26806.Zltkum.rst
new file mode 100644
index 0000000..8514bb9
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2019-06-10-22-48-50.bpo-26806.Zltkum.rst
@@ -0,0 +1,4 @@
+To compensate for stack frames added by IDLE and avoid possible problems
+with low recursion limits, add 30 to limits in the user code execution
+process. Subtract 30 when reporting recursion limits to make this addition
+mostly transparent.