[Python-ideas] Shrink recursion error tracebacks (was: Have REPL print less by default)

Terry Reedy tjreedy at udel.edu
Wed Apr 20 02:19:38 EDT 2016


On 4/20/2016 12:07 AM, Émanuel Barry wrote:
> This idea was mentioned a couple of times in the previous thread, and it
> seems reasonable to me. Getting recursion errors when testing a function in
> the interactive prompt often screwed me over, as I have a limited scrollback
> of 1000 lines at best on Windows (I never checked exactly how high/low the
> limit was), and with Python's recursion limit of 1000, that's a whopping
> 1000 to 2000 lines in my console, effectively killing off anything useful I
> might have wanted to see. Such as, for example, the function definition that
> triggered the exception.

For those who don't know, the Windows console uses a circular buffer of 
lines.  The default size was once 300, I believe -- too small to contain 
a run of the test suite.  (I seems to be less on Win 10).  The max with 
win 10 appears to be 999 (x 4? unclear).

-- 
Terry Jan Reedy





More information about the Python-ideas mailing list