Immutability

Bruno Desthuilliers onurb at xiludom.gro
Wed Jun 28 13:01:40 EDT 2006


Fredrik Lundh wrote:
> Bruno Desthuilliers wrote:
> 
> 
>>>class fred :
>>>    @property
>>>    def joe (self) :
>>>        print "Inside /joe\n"
>>
>>
>>properties dont work properly on old-style classes (lookup 'new-style
>>classes' on python.org, in the documentation menu), hence the strange
>>behaviour you observe.
> 
> 
> property getters work just fine on old-style classes (setters and deleters don't
> work, but that's not what he's using).

Thanks - I was too lazy to actually reread all the doc or derive this
from observation !-)


-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list