Property Attributes
property.fset
Stored assignment accessor; ordinary assignment invokes it with the instance and assigned value. Reading this field on the property descriptor gives the original accessor object, or None if absent. It does not execute the accessor. Access a descriptor through its class (for example, Item.value) rather than through an instance, which normally invokes the getter. The field itself is read-only; use the corresponding replacement method to make a new property.
Formal Syntax & Structure
python syntaxpython
value.fsetReturn Value
Callable | None
Stored accessor or None.
Working Example
Example Snippetpython
def read(self): return self._valuedef write(self, value): self._value = valuedef erase(self): del self._valuep = property(read, write, erase)print(p.fset is write)print(property().fset is None)print(p.fset.__name__)