Author taleinat
Recipients serhiy.storchaka, taleinat, terry.reedy
Date 2019-06-10.17:23:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560187422.76.0.968075753784.issue26806@roundup.psfhosted.org>
In-reply-to
Content
> 'max(n, 50)' should have been 'min(n, 50)'  Tal, does you comment avove about the former apply when corrected to the latter?

Yes. To use your terms, I prefer incrementing over thresholding.

> This is all that is needed for getrecursionlimit.

If we go with incrementing, then getrecursionlimit should likely decrement the returned value by the same amount, so that setrecursionlimit(getrecursionlimit()) doesn't change the recursion limit.

> Currently, at least on CPython, n must be >= 1 or ValueError is raised.  I don't like changing that.

This is another issue that incrementing avoids.

Since it looks like we're in general agreement, Terry, I'll work up a PR.
History
Date User Action Args
2019-06-10 17:23:42taleinatsetrecipients: + taleinat, terry.reedy, serhiy.storchaka
2019-06-10 17:23:42taleinatsetmessageid: <1560187422.76.0.968075753784.issue26806@roundup.psfhosted.org>
2019-06-10 17:23:42taleinatlinkissue26806 messages
2019-06-10 17:23:42taleinatcreate