Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'received:134': 0.05; 'stack.': 0.07; 'exception,': 0.09; 'stderr': 0.09; '(at': 0.13; 'stack': 0.13; 'thu,': 0.15; 'variables': 0.15; 'clear.': 0.16; 'himself.': 0.16; 'py3': 0.16; 'received:ac.be': 0.16; 'stack:': 0.16; 'useless.': 0.16; 'wrote:': 0.16; 'debugging': 0.18; 'say,': 0.18; '2015': 0.20; 'fine,': 0.22; 'trace': 0.22; 'code.': 0.23; "haven't": 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'example': 0.26; 'chris': 0.26; 'values': 0.28; 'subject:/': 0.30; 'received:be': 0.30; 'generally': 0.32; 'point': 0.33; 'useful': 0.33; 'traceback': 0.33; 'next': 0.35; 'should': 0.36; 'tool': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'someone': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.40; 'more': 0.63; 'jul': 0.72; 'actually,': 0.84; 'locals': 0.84; 'pardon': 0.84 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnUFAN62p1WGuA9G/2dsb2JhbABahCsBJIMkwBUCghUBAQEBAQGFLwEBBCNVEQsYAgIFFgsCAgkDAgECAUUTBgICiCq6E5EmhHgBAQgCIIEiiiqFDRaCUoFDAQSURowYiDuQRCZjgxttAYJKAQEB Date: Thu, 16 Jul 2015 15:56:27 +0200 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Possibly Pythonic Tail Call Optimization (TCO/TRE) References: <55A3A853.4040006@rece.vub.ac.be> <55A3C366.6060602@rece.vub.ac.be> <87fv4r1fre.fsf@jester.gateway.sonic.net> <87bnff1eks.fsf@jester.gateway.sonic.net> <87d1zunctp.fsf@elektro.pacujo.net> <87k2u2eu67.fsf@elektro.pacujo.net> <55A51662.4090007@rece.vub.ac.be> <55A75DE0.1070101@rece.vub.ac.be> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437054989 news.xs4all.nl 2877 [2001:888:2000:d::a6]:36486 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:93928 On 07/16/2015 01:45 PM, Chris Angelico wrote: > On Thu, Jul 16, 2015 at 5:31 PM, Antoon Pardon > wrote: >> >> I would say, that someone should get over himself. >> Traceback are not the only or even the most useful >> tool for debugging code. The current stack trace >> doesn't even contain the value's of the variables >> on the stack. So in case of Terry Reedy's example >> that stack trace would IMO have been next to useless. > Actually, they do contain all of that (at least, they do in Py3 - not > sure about Py2 as I haven't checked). You can poke around with the > locals at every point on the stack: Fine, I should have been more clear. The stack trace as it is generally produced on stderr after an uncought exception, doesn't contain the values of the variables on the stack. -- Antoon Pardon