Getters and setters in python, common practise

Peter Hansen peter at engcorp.com
Thu Apr 15 08:02:19 EDT 2004


Yermat wrote:

> Petter Holmström wrote:
>> I have not found any documentation on this topic. Could you please 
>> point me to some?
> 
> see "property" at http://www.python.org/doc/2.3.3/lib/built-in-funcs.html
> 
> You could also look at 
> http://users.rcn.com/python/download/Descriptor.htm to understand how it 
> does really work.

Also helpful: http://www.python.org/2.2/descrintro.html#property



More information about the Python-list mailing list