]> granicus.if.org Git - python/commit
sys.setrecursionlimit() now raises RecursionError
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 12 Oct 2015 22:11:21 +0000 (00:11 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 12 Oct 2015 22:11:21 +0000 (00:11 +0200)
commit50856d5ae745d1c9f691afbd78572bf073c941cf
treed628ac3d10d0fa02551a8a45d43c03d948306600
parent60f26691f5aeff555f27c62aee11efb07e20ecdc
sys.setrecursionlimit() now raises RecursionError

Issue #25274: sys.setrecursionlimit() now raises a RecursionError if the new
recursion limit is too low depending at the current recursion depth. Modify
also the "lower-water mark" formula to make it monotonic. This mark is used to
decide when the overflowed flag of the thread state is reset.
Doc/library/sys.rst
Include/ceval.h
Lib/test/test_sys.py
Misc/NEWS
Modules/_testcapimodule.c
Python/sysmodule.c