Immutability

Fredrik Lundh fredrik at pythonware.com
Wed Jun 28 13:31:50 CEST 2006


Sion Arrowsmith wrote:

> What I've not seen documented anywhere is the:
>        @property
>        def fset(self, value):
>            ...
> idiom. It's not obvious from the documentation of the property
> function that it can be used as a decorator like this.

probably because it cannot be used in that way: the "property" function
takes the *getter* as its first argument, so you can only use this for read-
only properties...

</F> 






More information about the Python-list mailing list