[Python-Dev] properties and block statement
solipsis at pitrou.net
Tue Oct 18 19:17:14 CEST 2005
> What would this mythical block statement look like that would make
> properties easier to write than the above late-binding or the subclass
> Property recipe?
I suppose something like:
x = prop:
""" Yay for property x! """
def __set__(self, value):
self._x = x
(where "@bargs" would be the syntax to refer to block args as a dict,
the same way "**kargs" already exist)
More information about the Python-Dev