X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 78.192.65.63 Path: csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!news.muarf.org!news.roellig-ltd.de!open-news-network.org!border2.nntp.ams1.giganews.com!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '16,': 0.03; 'yet.': 0.04; 'explicitly': 0.05; 'friday,': 0.09; 'url:faqs': 0.09; 'cc:addr :python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'ought': 0.16; 'trace.': 0.16; 'url:catb': 0.16; 'url:~esr': 0.16; 'sat,': 0.16; 'wrote:': 0.18; '(not': 0.18; 'stack': 0.19; 'cc:addr:python.org': 0.22; 'this?': 0.23; 'cc:2**0': 0.24; '15,': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "skip:' 10": 0.31; 'comparison': 0.31; "d'aprano": 0.31; 'depth': 0.31; 'steven': 0.31; 'probably': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'explains': 0.36; "didn't": 0.36; 'url:org': 0.36; 'sure': 0.39; 'how': 0.40; 'experts': 0.60; 'length': 0.61; 'information': 0.63; 'kind': 0.63; 'maximum': 0.63; 'more': 0.64; 'thomas': 0.65; '2015': 0.84; 'batchelder': 0.84; 'to:none': 0.92; 'exceeded': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=QQtfF2Bk1RqeNYxfeUnbjK3URcWypieIG3hEO//72ow=; b=Ff+hFP4NV48u5j7hRzZS9wT7276ySzjYUhUr7Y7hzKUvFxwjvbAtyRC+1pCAN68Hop xXcJKccV4q9buQ/c5aJROVT4ngZdpqVA5uV+/NX6THfDgR19ErtTsScbHsr3HveUrLXe zHdf1bFY6pUpzqBtcPyc90XC4FvuzeM9n+GgCSRPTTpp/A+qfkdtRhacI2GPtWr3KG/d AhtD1mnQlEo61rjh0w/g5wCU2bSLYKhU/+A6OZu2txocOWLKXpscVFmAH/v3hjNQ1rUE Gqf6MRebXsDJbayw4Wju8p9EG2V8Xq0iz5HNTuLCiCGYWaiFXBiTtwJNcWzTBeZ2EfTy WNmg== MIME-Version: 1.0 X-Received: by 10.50.43.196 with SMTP id y4mr1787827igl.14.1431739990962; Fri, 15 May 2015 18:33:10 -0700 (PDT) In-Reply-To: <9cbf3b8e-e830-46f5-a636-27c0d07f460a@googlegroups.com> References: <871tih66z5.fsf@Equus.decebal.nl> <1585804.vCLx6kbzfH@PointedEars.de> <55569607$0$13008$c3e8da3$5496439d@news.astraweb.com> <9cbf3b8e-e830-46f5-a636-27c0d07f460a@googlegroups.com> Date: Sat, 16 May 2015 11:33:10 +1000 Subject: Re: Minimising stack trace From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1431739994 news.xs4all.nl 2952 [2001:888:2000:d::a6]:38272 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90707 On Sat, May 16, 2015 at 11:24 AM, Ned Batchelder wrote: > 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. >> > >> > >> >> 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. You mean like this? http://www.catb.org/~esr/faqs/smart-questions.html#idp64834912 (Not sure whether you knew and were hinting, or didn't know that that's explicitly mentioned.) ChrisA