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


Groups > comp.lang.python > #46372 > unrolled thread

Re: Fatal Python error

Started byJoshua Landau <joshua.landau.ws@gmail.com>
First post2013-05-29 13:43 +0100
Last post2013-05-29 07:47 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#46372 — Re: Fatal Python error

FromJoshua Landau <joshua.landau.ws@gmail.com>
Date2013-05-29 13:43 +0100
SubjectRe: Fatal Python error
Message-ID<mailman.2352.1369831470.3114.python-list@python.org>

[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.

[toc] | [next] | [standalone]


#46387

Fromrusi <rustompmody@gmail.com>
Date2013-05-29 07:47 -0700
Message-ID<ebe97e33-7a88-43a9-9e3f-a06ac644f795@bw5g2000pbd.googlegroups.com>
In reply to#46372
On May 29, 5:43 pm, Joshua Landau <joshua.landau...@gmail.com> wrote:
> On 29 May 2013 13:25, Dave Angel <da...@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

In gmail
New interface:
There should be a down arrow next to the trash-can right bottom of
posting-screen
Click the down-arrow. YOu should see a 'choose text-only' option

Old interface:
When posting a new message, right at the top next to all the
formatting icons is a text-only link

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web