[Python-Dev] properties and block statement

Antoine Pitrou solipsis at pitrou.net
Tue Oct 18 22:48:10 CEST 2005


Le mardi 18 octobre 2005 à 12:56 -0700, Josiah Carlson a écrit :
> You are saving 3 lines over the decorator/function approach [...]

Well, obviously, the point of a block statement or construct is that it
can be applied to many other things than properties. Otherwise it is
overkill as you imply.

(I'm not actively advocating this by the way, I was just answering a
request for an example)




More information about the Python-Dev mailing list