skbio.util.classproperty#
- class 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:
- funcfunction
Method to make a class property.
- Returns:
- property
Decorated method.
- Raises:
- AttributeError
If the property is set on an instance.
Attributes (inherited)
fdelfgetfsetMethods (inherited)
deleterDescriptor to obtain a copy of the property with a different deleter.
getterDescriptor to obtain a copy of the property with a different getter.
setterDescriptor to obtain a copy of the property with a different setter.
Special methods
Return an attribute of instance, which is of type owner.
Set an attribute of instance to value.
Special methods (inherited)
__delete__Delete an attribute of instance.
__eq__Return self==value.
__ge__Return self>=value.
__getstate__Helper for pickle.
__gt__Return self>value.
__hash__Return hash(self).
__le__Return self<=value.
__lt__Return self<value.
__ne__Return self!=value.
__set_name__Method to set name of a property.
__str__Return str(self).
Details