Hi! There was a beautiful way to organize class property in frame of one function, by using the apply decorator.
class Example(object):
@apply
def myattr():
doc = """This is the doc string."""
def fget(self):
return self._half * 2
def fset(self, value):
self._half = value / 2
def fdel(self):
del self._half
return property(**locals())
But now apply has been deprecated.
Is there any possibility to achieve such simplicity and readability for property, with new, came instead “extended call syntax”?