Minor annoyances with properties

Christian Heimes lists at cheimes.de
Thu May 27 09:24:36 EDT 2010


>  Do I miss something?
> Is this the way to do it, or is there a better one?

A better way was introduced in Python 2.6. See 
http://docs.python.org/library/functions.html?highlight=property#property
I have a Python only version around if you are still using Python 2.5.

Christian




More information about the Python-list mailing list