<div class="gmail_extra"><br><br>On 06/12/2012 11:54, Steven D'Aprano wrote:<br>
> On 06/12/12 15:42, Mark Lawrence wrote:<br>
>> On 05/12/2012 16:58, Steven D'Aprano wrote:<br>
>>><br>
>>> And here is how it should be written in Python:<br>
>>><br>
>>> class Example(object):<br>
>>> def __init__(self, value):<br>
>>> self.x = value<br>
>>><br>
>>> instance = Example(42)<br>
>>> print instance.x # gives 42<br>
>>> instance.setx(23)<br>
>>><br>
>><br>
>> And introduce error handling while we're at it? Should we consider a<br>
>> CutAndPasteError in Python? :)<br>
><br>
> Oh the shame! I am disgraced!<br>
><br>
> /me hangs head in shame<br>
><br>
> Thanks for catching the error.<br>
><br>
<br>
>I can't say I'll lose too much sleep over it. IIRC 30 years ago an<br>>emergency release was done, all signed off by the appropriate >people,<br>>and the integration team couldn't load the software onto the system.<br>
>Why?  It handn't compiled, someone had taken out one line too many >with<br>>the editor!!!  Now we're giving advice in relatively real time, and<br>>sometimes we get it wrong.  Thankfully not so costly to the UK >taxpayer.<br>

><br>>--<br>>Cheers.<br>><br>>Mark Lawrence.<br><br><br>It's akin to Michael Jordan missing a three-pointer at the buzzer to lose a game...it can happen to the best of us.  :-)<br><br>Best,<br>Malcolm Newsome<br>
</div>