Irit Katriel <iritkatr...@yahoo.com> added the comment:

So, we have a contact chain of length almost equal to the recursion limit, 
which is too much to process recursively in python (in c it does work, hence 
the difference between the outputs of the OP's two scripts).

The PR removes recursion from TracebackException (in constructor as well as in 
format()).  The code is less readable and I'm not sure this case is worth that. 
Should we instead truncate the output, ie add a limit on the recursion depth?  
(note that in this case this would remove the last "recursion depth exceeded" 
exception and show only some of the repetitive ones).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42848>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to