A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-October/057441.html below:

[Python-Dev] Definining properties - a use case for class decorators?

[Python-Dev] Definining properties - a use case for class decorators? [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4