Author terry.reedy
Recipients serhiy.storchaka, taleinat, terry.reedy
Date 2019-06-10.01:25:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560129946.45.0.261840023122.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?

Both get... and setrecursionlimit should be wrapped in a function, such as 'wrap_recursionlimits', called from run.main, each decorated with functools.wraps.  Both docstrings should be augmented with ... .__doc__ += "\n\nWhen running under IDLE, ..."  This is all that is needed for getrecursionlimit.  The question is to do with setrecursionlimit.

Whatever is chosen should be added to the IDLE doc section mentioned above.

Currently, at least on CPython, n must be >= 1 or ValueError is raised.  I don't like changing that.  I don't have a strong feeling about threshholding versus incrementing, but see my question above.
History
Date User Action Args
2019-06-10 01:25:46terry.reedysetrecipients: + terry.reedy, taleinat, serhiy.storchaka
2019-06-10 01:25:46terry.reedysetmessageid: <1560129946.45.0.261840023122.issue26806@roundup.psfhosted.org>
2019-06-10 01:25:46terry.reedylinkissue26806 messages
2019-06-10 01:25:46terry.reedycreate