diff options
author | Tal Einat <taleinat+github@gmail.com> | 2019-07-06 12:35:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-06 12:35:24 (GMT) |
commit | fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71 (patch) | |
tree | 77d6f9323162ee6455a14da9c4f9bb78640284ae /Misc/NEWS.d/next/IDLE | |
parent | 45bc61b97178b27ae05bd3eb95481bf0325795bb (diff) | |
download | cpython-fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71.zip cpython-fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71.tar.gz cpython-fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71.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.
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.rst | 4 |
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. |