atom.property

class atom.property.Property(fget=None, fset=None, cached=False)[source]

Bases: atom.catom.Member

A Member which behaves similar to a Python property.

getter(func)[source]

Use the given function as the property getter.

This method is intented to be used as a decorator.

setter(func)[source]

Use the given function as the property getter.

This method is intented to be used as a decorator.

clone()[source]

Create a clone of the property.

reset(owner)[source]

Reset the value of the property.

If the property is cached, the old value will be cleared and the notifiers (if any) will be run. If the property is not cached, then the notifications will be unconditionally run using the None as the old value.