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
fdel
fget
fset
Built-ins
__delete__
(instance, /)Delete an attribute of instance.
__eq__
(value, /)Return self==value.
__ge__
(value, /)Return self>=value.
__get__
(cls, owner)Return an attribute of instance, which is of type owner.
__getstate__
(/)Helper for pickle.
__gt__
(value, /)Return self>value.
__hash__
(/)Return hash(self).
__le__
(value, /)Return self<=value.
__lt__
(value, /)Return self<value.
__ne__
(value, /)Return self!=value.
__set__
(obj, value)Set an attribute of instance to value.
Method to set name of a property.
__str__
(/)Return str(self).
Methods