More flexibility
New Feature
We need one property decorator to rule them all, i.e. one decorator that can create any kind of property, then we create functools.partial
'd wrappers for the special cases:
-
constant (only getter, returning a constant value, no setter, no deleter)
-
read-only (only getter, returning (possibly dynamical) value)
-
modifyable (getter&setter&deleter)
-
entry-point (only setter)
-
also
abc.abstractproperty
-versions of the above -
Basically, it should be possible to do anything that is possible via the normal
@property
-approach
Benefits
Downsides/Conflicts
Technical Requirements
Edited by Yann Büchau