Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24402

Re: exception problem

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'exception': 0.05; 'output': 0.05; 'class,': 0.07; 'exception.': 0.09; 'expecting': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hazard': 0.16; 'line),': 0.16; 'subject:exception': 0.16; '\xa0print': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'instance,': 0.22; 'please?': 0.22; 'subject:problem': 0.22; 'posted': 0.23; 'header:In-Reply-To:1': 0.23; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.214.174': 0.27; 'easiest': 0.27; 'produces': 0.29; 'code:': 0.29; 'am,': 0.30; 'guess': 0.30; "i'm": 0.30; 'chris': 0.31; 'code': 0.31; 'usually': 0.32; "can't": 0.34; 'received:google.com': 0.34; 'received:209.85': 0.35; 'to:addr :python-list': 0.35; 'that,': 0.36; 'two': 0.36; 'but': 0.36; 'know.': 0.37; 'subject:: ': 0.37; 'received:209': 0.37; '(for': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.39; 'information,': 0.63; 'more': 0.63; 'console,': 0.84; 'presumably': 0.84; 'received:mail-ob0-f174.google.com': 0.91
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:to :content-type:content-transfer-encoding; bh=7U7Wp44KkMmIVH2zQJl/XXLpGuaO34Tbyg3NRlW9EJs=; b=o82qS/EY3LIOnzlE9P/53dUY9CoLD5HPigkPncCFy3mny2BnbXhuYgv/dVIKLQ38Ro wid+oywDkbX6aaL20cgVjhFxJc5LzafJTKW+Hq/kR1MMz+yR+kTrE7heT/zhWg9bb0X5 XjrH60ytfoTAmY7RcesxsJ2Ap9pPB35PJ8ysEymbwZWARYPaSiOXbwuEKgwBBHIGVX71 Dv5r098eK2i+nZrF6eEfbtl4GUaT9d16Pn6U+52UzOgM/9qeCm7jgywB+yx2ScUZxr+Q evme76hY3SgUkBw6/ExJfJDXoUXz40NPxspxIsemw6iDUi1dtT6JR1lb275e7WW11nLt ZG+w==
MIME-Version 1.0
In-Reply-To <4FE79433.8020704@earthlink.net>
References <4FE79433.8020704@earthlink.net>
Date Mon, 25 Jun 2012 08:36:11 +1000
Subject Re: exception problem
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.1462.1340577374.4697.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1340577374 news.xs4all.nl 6971 [2001:888:2000:d::a6]:35066
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:24402

Show key headers only | View raw


On Mon, Jun 25, 2012 at 8:26 AM, Charles Hixson
<charleshixsn@earthlink.net> wrote:
> The code:
>                finally:
>                    print ("at finally")
>                print ("chunks =")
> produces this result:
> path  3...

Can you state more clearly the problem, please? I'm seeing output that
can't have come from the code posted (for instance, immediately after
the "at finally", I'm expecting to see the "chunks =" line), and I'm
not seeing any exception information, so I can't even hazard a guess
as to what's throwing the exception.

Presumably these are two methods in the same class, since you're
calling it as "self.chunkLine", but beyond that, it's hard to know.
Take off the try/except and let your exception go to console, that's
usually the easiest thing to deal with.

Chris Angelico

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: exception problem Chris Angelico <rosuav@gmail.com> - 2012-06-25 08:36 +1000

csiph-web