Message252004
Attached patch raises a ValueError if the current recursion depth is higher than the new "low-water mark". The low-water mark is the value computed by _Py_MakeEndRecCheck() in Py_LeaveRecursiveCall() to decide if we can reset the overflowed field of the thread state to 0. Example of error with the patch: $ ./python -c 'import sys; sys.setrecursionlimit(2)' Traceback (most recent call last): File "<string>", line 1, in <module> ValueError: cannot set recursion limit to 2: the minimum recursion limit is 1 at the recursion depth 1 | |
| Date | User | Action | Args | | 2015-10-01 07:41:09 | vstinner | set | recipients: + vstinner, python-dev, serhiy.storchaka | | 2015-10-01 07:41:09 | vstinner | set | messageid: <1443685269.2.0.525362214495.issue25274@psf.upfronthosting.co.za> | | 2015-10-01 07:41:09 | vstinner | link | issue25274 messages | | 2015-10-01 07:41:09 | vstinner | create | | |