skbio.util.classproperty(func)[source]¶Decorator for class-level properties.
Supports read access only. The property will be read-only within an instance. However, the property can always be redefined on the class, since Python classes are mutable.
| Parameters: | func (function) – Method to make a class property. |
|---|---|
| Returns: | Decorated method. |
| Return type: | property |
| Raises: | AttributeError – If the property is set on an instance. |
Attributes
fdel |
|
fget |
|
fset |
Built-ins
__get__(cls, owner) |
|
__set__(obj, value) |
Set an attribute of instance to value. |
Methods
deleter |
Descriptor to change the deleter on a property. |
getter |
Descriptor to change the getter on a property. |
setter |
Descriptor to change the setter on a property. |