This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients python-dev, serhiy.storchaka, vstinner
Date 2015-10-01.07:41:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1443685269.2.0.525362214495.issue25274@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-10-01 07:41:09vstinnersetrecipients: + vstinner, python-dev, serhiy.storchaka
2015-10-01 07:41:09vstinnersetmessageid: <1443685269.2.0.525362214495.issue25274@psf.upfronthosting.co.za>
2015-10-01 07:41:09vstinnerlinkissue25274 messages
2015-10-01 07:41:09vstinnercreate