Minimising stack trace

Ned Batchelder ned at nedbatchelder.com
Fri May 15 21:24:11 EDT 2015


On Friday, May 15, 2015 at 8:57:53 PM UTC-4, Steven D'Aprano wrote:
> On Sat, 16 May 2015 05:41 am, Thomas 'PointedEars' Lahn wrote:
> 
> > Cecil Westerhof wrote:
> > 
> >> While playing with recursion I get:
> >>     RuntimeError: maximum recursion depth exceeded in comparison
> >> 
> >> But then I get a very long stack trace. Is there a way to make this a
> >> lot shorter. Now I 'lose' interesting information because of the length
> >> of the stack trace.
> > 
> > <http://www.catb.org/~esr/faqs/smart-questions.html>
> 
> There ought to be a website that explains how to give smart answers.

Or one that explains how to be kind to those that don't know
the ropes yet.  Though pointing impatient experts at a
website probably won't get them to change any more than
brusquely pointing newbs at a website will.

--Ned.



More information about the Python-list mailing list