<div dir="ltr">On 29 May 2013 13:25, Dave Angel <span dir="ltr"><<a href="mailto:davea@davea.name" target="_blank">davea@davea.name</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>On 05/29/2013 07:48 AM, Joshua Landau wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all, again. Instead of revising like I'm meant to be, I've been<br>
delving into a bit of Python and I've come up with this code:<br>
<br>
</blockquote>
<br></div>
To start with, please post in text mode.  By using html, you've completely messed up any indentation you presumably had.</blockquote><div><br></div><div>Appologies, I use GMail and I don't know how to force text-only</div>


<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
class ClassWithProperty:<br>
  @property<br>
def property(self):<br>
pass<br>
</blockquote>
<br></div>
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</blockquote><div><br></div><div>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</div>


<div><br></div><div>You can rename it if you want. Anything will do. Obviously this is a minimal example code, and not the real thing.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As you will expect, this does nothing... on Python2.7 and PyPy. Python3.3<br>
prefers to spit out a "Fatal Python error: Cannot recover from stack<br>
overflow.", which seems a bit unexpected.<br>
<br>
</blockquote>
<br></div>
A stack overflow means you have infinite recursion. </blockquote><div><br></div><div>I realise, but I was hoping to catch that with the "except RuntimeError".</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Try fixing the property name above, and see if that makes a difference.</blockquote><div><br></div><div>It does not make a difference. </div></div></div></div>