<div dir="ltr">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:<div><br></div><div><div><div>class ClassWithProperty:</div><div>
<span class="" style="white-space:pre"> </span>@property</div><div><span class="" style="white-space:pre"> </span>def property(self):</div><div><span class="" style="white-space:pre"> </span>pass</div><div><br></div><div>
thingwithproperty = ClassWithProperty()</div><div><br></div><div>def loop():</div><div><span class="" style="white-space:pre"> </span>try:</div><div><span class="" style="white-space:pre"> </span>thingwithproperty.property</div>
<div><span class="" style="white-space:pre"> </span>except:</div><div><span class="" style="white-space:pre"> </span>pass</div><div><br></div><div><span class="" style="white-space:pre"> </span>loop()</div><div><br></div>
<div>try:</div><div><span class="" style="white-space:pre"> </span>loop()</div><div>except RuntimeError:</div><div><span class="" style="white-space:pre"> </span>pass</div></div></div><div><br></div><div>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.</div>
<div><br></div><div>Wuzzup with that?</div></div>