]> granicus.if.org Git - python/commit
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 6 Jul 2019 12:54:17 +0000 (05:54 -0700)
committerGitHub <noreply@github.com>
Sat, 6 Jul 2019 12:54:17 +0000 (05:54 -0700)
commitd4af55391f56286ab8d478591017174a5a0a5ce2
treee2bbbb3535f87d3286a25beb90f2dc29f0d43d87
parentea9c8caa13977561787bf2de430f18c2031dde0d
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>
Doc/library/idle.rst
Lib/idlelib/NEWS.txt
Lib/idlelib/help.html
Lib/idlelib/idle_test/test_run.py
Lib/idlelib/run.py
Misc/NEWS.d/next/IDLE/2019-06-10-22-48-50.bpo-26806.Zltkum.rst [new file with mode: 0644]