[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

Serhiy Storchaka report at bugs.python.org
Thu Oct 1 11:19:31 CEST 2015


Serhiy Storchaka added the comment:

> ValueError: cannot set recursion limit to 2: the minimum recursion limit is 1 at the recursion depth 1

This message looks confusing to me. 2 > 1, isn't?

The dependency of min_limit from new_limit is not monotonic:

new_limit = 99 => min_limit = 74
new_limit = 100 => min_limit = 75
new_limit = 101 => min_limit = 51

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25274>
_______________________________________


More information about the Python-bugs-list mailing list