Re: class property methods getting called only once

2006-12-03 Thread limodou
>On 3 Dec 2006 21:24:03 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In the following code, I could not find out why the set and get methods > are not called once I set the property. > > > >>> class Test: > ... def __init__(self): > ... self._color = 12 > ... def _setcolor(

class property methods getting called only once

2006-12-03 Thread [EMAIL PROTECTED]
In the following code, I could not find out why the set and get methods are not called once I set the property. >>> class Test: ... def __init__(self): ... self._color = 12 ... def _setcolor(self,value): ... print 'setting' ... self._color = value ... def _getc