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


Groups > comp.lang.python > #46372

Re: Fatal Python error

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.010
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:error': 0.03; 'subject:Python': 0.06; 'error:': 0.07; 'rename': 0.07; 'overflow': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; '@property': 0.16; 'expect,': 0.16; 'pypy.': 0.16; 'spit': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'obviously': 0.18; 'all,': 0.19; 'bit': 0.19; 'stack': 0.19; 'meant': 0.20; 'seems': 0.21; '8bit%:5': 0.22; 'code,': 0.22; 'example': 0.22; 'cc:addr:python.org': 0.22; '2.x': 0.24; 'certainly': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'pass': 0.26; 'post': 0.26; 'code:': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'received:209.85.217': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; '3.x': 0.31; 'fixing': 0.31; 'indentation': 0.31; 'python2.7': 0.31; 'with,': 0.31; 'class': 0.32; 'text': 0.33; 'guess': 0.33; 'minimal': 0.33; 'not.': 0.33; 'received:209.85': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'html,': 0.36; 'whilst': 0.36; 'received:209': 0.37; 'gmail': 0.38; 'that,': 0.38; 'anything': 0.39; 'does': 0.39; 'how': 0.40; 'above,': 0.60; 'catch': 0.60; 'dave': 0.60; "you've": 0.63; 'name': 0.63; 'real': 0.63; 'between': 0.67; 'hoping': 0.75; 'difference.': 0.84; 'messed': 0.84; 'prefers': 0.84; 'presumably': 0.84; 'angel': 0.91; 'recover': 0.91; '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=5vZQVLYRCfE1UUiAQAk3Wp50ns/hpKfOms/Aqtm4lyk=; b=qlA2cUeyxE/xbWJg0qvn4775Vgr5ODvW5pUQCq/Eq8K0FLEgIf/SvTI6PLWAOfSird GpojpGV6WCZCym6JrpwD077sLC+VukmgwDmEJZ8hZjM5Rw+bLYcqDpBlwKS7cZZduYkl JhBhE8IVkjxLnnMdgdLNOHW4Hxt2DEYhxyQEApkKpF0nGA+HuNZboS4kgul9pjwUPRyk DDCFcTaOEcvtEm2hvyu7McCogrENADidN+hnfzG8yxZ3Z5QMnQ5PmzK9Y4viaDvsupzo qkpp5hEwuM2dRN45VvyN72n3vlDSsVuT4drfrn7FWmpSTOp7H6qGgFSF1UFirHII283w FGdw==
X-Received by 10.112.138.100 with SMTP id qp4mr1531192lbb.84.1369831468495; Wed, 29 May 2013 05:44:28 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <51A5F3A9.3050709@davea.name>
References <CAN1F8qXPEM4B=2e7KOhWeTKzxmeeb_w_S97wYiHCMXH3jfzL6g@mail.gmail.com> <51A5F3A9.3050709@davea.name>
From Joshua Landau <joshua.landau.ws@gmail.com>
Date Wed, 29 May 2013 13:43:48 +0100
Subject Re: Fatal Python error
To Dave Angel <davea@davea.name>
Content-Type multipart/alternative; boundary=089e0118329a14f9a004dddabe9e
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.2352.1369831470.3114.python-list@python.org> (permalink)
Lines 119
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369831470 news.xs4all.nl 15973 [2001:888:2000:d::a6]:49145
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:46372

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 29 May 2013 13:25, Dave Angel <davea@davea.name> wrote:

> On 05/29/2013 07:48 AM, Joshua Landau wrote:
>
>> Hello all, again. Instead of revising like I'm meant to be, I've been
>> delving into a bit of Python and I've come up with this code:
>>
>>
> To start with, please post in text mode.  By using html, you've completely
> messed up any indentation you presumably had.


Appologies, I use GMail and I don't know how to force text-only


>  class ClassWithProperty:
>>   @property
>> def property(self):
>> pass
>>
>
> Did you really mean to hide the built-in property?  I don't know if this
> does that, but it's certainly confusing.  And perhaps that's a difference
> between 2.x and 3.x


I'm not. That goes to self.property, whilst the normal function isn't. I
guess it does locally hide it, but who really cares? :P

You can rename it if you want. Anything will do. Obviously this is a
minimal example code, and not the real thing.

 As you will expect, this does nothing... on Python2.7 and PyPy. Python3.3
>> prefers to spit out a "Fatal Python error: Cannot recover from stack
>> overflow.", which seems a bit unexpected.
>>
>>
> A stack overflow means you have infinite recursion.


I realise, but I was hoping to catch that with the "except RuntimeError".


> Try fixing the property name above, and see if that makes a difference.


It does not make a difference.

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


Thread

Re: Fatal Python error Joshua Landau <joshua.landau.ws@gmail.com> - 2013-05-29 13:43 +0100
  Re: Fatal Python error rusi <rustompmody@gmail.com> - 2013-05-29 07:47 -0700

csiph-web