J
Joshua Landau
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?
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?