Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46372
| References | <CAN1F8qXPEM4B=2e7KOhWeTKzxmeeb_w_S97wYiHCMXH3jfzL6g@mail.gmail.com> <51A5F3A9.3050709@davea.name> |
|---|---|
| From | Joshua Landau <joshua.landau.ws@gmail.com> |
| Date | 2013-05-29 13:43 +0100 |
| Subject | Re: Fatal Python error |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2352.1369831470.3114.python-list@python.org> (permalink) |
[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 | Next — Next in thread | Find similar | Unroll 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