Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; '16,': 0.03; 'broken': 0.03; 'arguments': 0.07; 'logic': 0.09; 'cc:addr:python-list': 0.10; 'benjamin': 0.16; 'cc:name:python list': 0.16; 'nameerror': 0.16; 'wrote:': 0.17; 'trying': 0.21; 'do.': 0.21; 'posted': 0.22; 'cc:2**0': 0.23; 'example': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'question': 0.27; 'message- id:@mail.gmail.com': 0.27; 'lines': 0.28; 'record': 0.28; '"in': 0.29; 'behaviour': 0.29; 'convince': 0.29; 'case,': 0.29; 'maybe': 0.29; 'function': 0.30; 'code': 0.31; 'johnson': 0.32; 'traceback': 0.33; 'problem': 0.33; 'received:google.com': 0.34; 'sometimes': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; "wasn't": 0.36; 'useful': 0.36; 'why': 0.37; 'passed': 0.37; 'subject:: ': 0.38; 'shows': 0.38; 'your': 0.60; 'provide': 0.62; 'different': 0.63; 'information': 0.63; 'generated.': 0.65; 'hints': 0.65; 'useful.': 0.65; '2013': 0.84; 'hardly': 0.84; 'oscar': 0.84; 'rick': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=tfDuW6u8zRjUzzpn8tnMNiBBS/3JHbGydBoy5L/1VlA=; b=LnEskFv+kfmokj1yHvRUTiN8Md0AqzjriznV3IdWgQXrrt+8Z6EQNacY5WDDj0neUb Hj26FoqUEf4bRwjiXQ9vv8tok/RxiFPS5hfrB9+lzqvvsZFxBTPYuEKURHSHflsQbGKE xHwBkpucoyDzHoRM0gDiOr4suXL8jw7UGa/fyoB4Gv8m7QhrJ8Zz29vDmGWDrH6OmY/a HLPYQfSi2rhw7bZ8mXO86Qx2mKBxGC+BviYtbhLv8Od/LzPcxXwnU+SDtNAuXOm+uext tB0bC7NmzFwLw7kpMngVwr432QFKrr1PU/inEOFGmBBSrXveO+9TiASy1qStFvaNhCu2 K+8A== X-Received: by 10.52.23.18 with SMTP id i18mr11539905vdf.46.1363476613857; Sat, 16 Mar 2013 16:30:13 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Oscar Benjamin Date: Sat, 16 Mar 2013 23:29:52 +0000 Subject: Re: PyWart: NameError trackbacks are superfluous To: Rick Johnson Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363476623 news.xs4all.nl 6892 [2001:888:2000:d::a6]:40830 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41334 On 16 March 2013 22:39, Rick Johnson wrote: > On Saturday, March 16, 2013 4:19:34 PM UTC-5, Oscar Benjamin wrote: > >> The traceback shows the arguments passed to the broken >> function that caused the NameError to be generated. >> Different arguments would not have generated the >> NameError. This information can be useful if the logic of >> the function in question is complicated. It also hints at >> why you were calling the function and what your code is >> trying to do. > > If you want to observe your code "in action" there are much better ways than eyeball-parsing lines and lines of trackbacks. The code you posted is nonsense, maybe you can provide a better example that will convince me, but that one failed miserably. I wasn't looking to convince *you*, just to set the record straight that this behaviour is sometimes useful. In any case, even when the traceback information is not helpful, printing it is really not a problem and hardly a "wart". Oscar