Fatal Python error

Joshua Landau joshua.landau.ws at gmail.com
Wed May 29 07:48:39 EDT 2013


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:

class ClassWithProperty:
 @property
def property(self):
pass

thingwithproperty = ClassWithProperty()

def loop():
try:
thingwithproperty.property
 except:
pass

loop()

try:
loop()
except RuntimeError:
pass

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.

Wuzzup with that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130529/2be02d5c/attachment.html>


More information about the Python-list mailing list