[Python-Dev] Definining properties - a use case for class decorators?
Antoine Pitrou
solipsis at pitrou.net
Wed Oct 19 13:12:26 CEST 2005
Hi Michele,
> Property p():
> "I am a property"
> def fget(self):
> pass
> def fset(self):
> pass
> def fdel(self):
> pass
In effect this is quite similar to the proposal I've done (except that
you've reversed the traditional assignment order from "p = Property()"
to "Property p()")
If others find it interesting and Guido doesn't frown on it, maybe we
should sit down and start writing a PEP ?
ciao
Antoine.
More information about the Python-Dev
mailing list