Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46379
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <joshua.landau.ws@gmail.com> |
| 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; 'subject:error': 0.03; 'algorithm': 0.04; 'subject:Python': 0.06; '-if': 0.07; 'test,': 0.07; 'except:': 0.09; 'try:': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; 'benjamin': 0.16; 'handler.': 0.16; 'question)': 0.16; 'simplified': 0.16; 'spotted': 0.16; 'wraps': 0.16; '\xc2\xa0i': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'else,': 0.19; 'seems': 0.21; '(the': 0.22; 'cc:addr:python.org': 0.22; 'directory.': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'needed.': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'indentation': 0.31; 'option.': 0.31; 'anyone': 0.31; 'file': 0.32; 'probably': 0.32; 'stuff': 0.32; 'text': 0.33; 'problem': 0.35; "can't": 0.35; 'except': 0.35; 'problem.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'doing': 0.36; "didn't": 0.36; 'should': 0.36; 'level': 0.37; 'step': 0.37; 'manager': 0.38; 'gmail': 0.38; 'anything': 0.39; 'skip:u 10': 0.60; 'dave': 0.60; 'new': 0.61; 'oscar': 0.84; 'recursion,': 0.84; 'angel': 0.91; 'choice.': 0.93; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=kaRtYfJ4EYR4X5F9nsI5A+YtlybYpuV3Xy1kShTYlgw=; b=niEL8jg/6W1/3rI8uD1/axQuekJOlq1gaCCBN050oNUp2u1gt4p/AGWLs6r0JTnFWG PaJY7+h/qHVVkV3C5SzsyxqUP3EV9sBxj7RgjyPNegEpRJRC7+xrVXQXCJkOWVjPA3rl 6lcsO25p6x3ehRETUMf3KT39cEEM0JY8nRvpEC8+CXP2BNqMftpDk7MK1ISIKl6mMeJC AMGE2l8NbI6dc4zE4jK3CM2HKA/cqf6/y9eeWC87dLq7mc8+Q3E0sRbwwg4NmJFabiE0 EZ9Jw/tfQ3FIe3OJFsbRnb3Ra6W8sZBTsWbd4YrBoJP/XqsUnSUqcKtWHft5ZK3q4t/+ vfpg== |
| X-Received | by 10.112.171.65 with SMTP id as1mr1606624lbc.113.1369836392427; Wed, 29 May 2013 07:06:32 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <51A5FC7D.8080202@davea.name> |
| References | <CAN1F8qXPEM4B=2e7KOhWeTKzxmeeb_w_S97wYiHCMXH3jfzL6g@mail.gmail.com> <CAHVvXxTxzZjhsmDw3x0Wm-wyLmdx5VehzKahnfkTSNrmigKMUA@mail.gmail.com> <51A5FC7D.8080202@davea.name> |
| From | Joshua Landau <joshua.landau.ws@gmail.com> |
| Date | Wed, 29 May 2013 15:05:52 +0100 |
| Subject | Re: Fatal Python error |
| To | Dave Angel <davea@davea.name> |
| Content-Type | multipart/alternative; boundary=001a11c25ac69235be04dddbe302 |
| 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.2358.1369836402.3114.python-list@python.org> (permalink) |
| Lines | 98 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1369836402 news.xs4all.nl 15937 [2001:888:2000:d::a6]:49003 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:46379 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On 29 May 2013 14:02, Dave Angel <davea@davea.name> wrote:
> On 05/29/2013 08:45 AM, Oscar Benjamin wrote:
> Joshua: Avoid doing anything complex inside an exception handler.
Unfortunately, Ranger (the file manager in question) wraps a lot of stuff
in one big exception handler. Hence there isn't much choice. The original
wasn't actually in an infinite recursion, too, but just a recursion over a
large directory.
Is there a reason that Python 3 can't be made to work like Python 2 and
PyPy, and -if not- should it? The catchable fail would be much nicer than
just bombing the program.
In the meantime the algorithm should just be reworked, but it seems like a
larger step than should be needed.
If nothing else, the exception frame is huge. I probably would have
> spotted it except for the indentation problem triggered by html. The top
> level code following your function didn't have any loops, so it wasn't a
> problem.
>
> Can anyone help Joshua put his gmail into text mode?
I've found a new option. As a test, here's a simplified version without the
property:
def loop():
try:
(lambda: None)()
except:
pass
loop()
try:
loop()
except RuntimeError:
pass
which is pretty much Oscar Benjamin's, but less stupid.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Fatal Python error Joshua Landau <joshua.landau.ws@gmail.com> - 2013-05-29 15:05 +0100 Re: Fatal Python error nn <pruebauno@latinmail.com> - 2013-05-31 07:31 -0700
csiph-web