[EMAIL PROTECTED] a écrit :
>>Even if you need to do something during attachment of components it is
>>more Pythonic to use properties. So you will write a method in your
>>class name something like _set_up(self,upstream_obj) an  _get_up(self).
>> And then at the end of your class put up=property(_get_up, _set_up).
>>You can still use the compr.up=... format.
> 
> 
> sorry, I don't quite follow. what are properties?
> 
Computed attributes. cf
http://www.python.org/doc/2.2.3/whatsnew/sect-rellinks.html#SECTION000340000000000000000




-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to