Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41334
| 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 | <oscar.j.benjamin@gmail.com> |
| 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 | <a8d188fa-35c4-452b-9efe-d6f380b37376@googlegroups.com> |
| References | <e6e760f7-eb3a-41c8-b52c-f14ee73aabb1@googlegroups.com> <mailman.3372.1363468797.2939.python-list@python.org> <a8d188fa-35c4-452b-9efe-d6f380b37376@googlegroups.com> |
| From | Oscar Benjamin <oscar.j.benjamin@gmail.com> |
| Date | Sat, 16 Mar 2013 23:29:52 +0000 |
| Subject | Re: PyWart: NameError trackbacks are superfluous |
| To | Rick Johnson <rantingrickjohnson@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | Python List <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3373.1363476623.2939.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On 16 March 2013 22:39, Rick Johnson <rantingrickjohnson@gmail.com> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
PyWart: NameError trackbacks are superfluous Rick Johnson <rantingrickjohnson@gmail.com> - 2013-03-16 11:27 -0700
Re: PyWart: NameError trackbacks are superfluous Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-03-16 21:19 +0000
Re: PyWart: NameError trackbacks are superfluous Rick Johnson <rantingrickjohnson@gmail.com> - 2013-03-16 15:39 -0700
Re: PyWart: NameError trackbacks are superfluous Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-03-16 23:29 +0000
Re: PyWart: NameError trackbacks are superfluous Rick Johnson <rantingrickjohnson@gmail.com> - 2013-03-16 16:50 -0700
Re: PyWart: NameError trackbacks are superfluous Chris Angelico <rosuav@gmail.com> - 2013-03-17 11:00 +1100
Re: PyWart: NameError trackbacks are superfluous Tim Chase <python.list@tim.thechases.com> - 2013-03-16 18:36 -0500
Re: PyWart: NameError trackbacks are superfluous Chris Angelico <rosuav@gmail.com> - 2013-03-17 10:48 +1100
Re: PyWart: NameError trackbacks are superfluous Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-16 23:48 +0000
Re: PyWart: NameError trackbacks are superfluous Chris Angelico <rosuav@gmail.com> - 2013-03-17 10:59 +1100
Re: PyWart: NameError trackbacks are superfluous Rick Johnson <rantingrickjohnson@gmail.com> - 2013-03-16 17:11 -0700
Re: PyWart: NameError trackbacks are superfluous Michael Torrie <torriem@gmail.com> - 2013-03-16 19:58 -0600
Re: PyWart: NameError trackbacks are superfluous Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-17 03:14 +0000
Re: PyWart: NameError trackbacks are superfluous Chris Angelico <rosuav@gmail.com> - 2013-03-17 14:19 +1100
Re: PyWart: NameError trackbacks are superfluous Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-03-16 21:13 -0700
Re: PyWart: NameError trackbacks are superfluous Jason Swails <jason.swails@gmail.com> - 2013-03-17 17:22 -0400
csiph-web