Bases: atom.catom.Member
A member class which supports value initialization.
A plain Value provides support for default values and factories, but does not perform any type checking or validation. It serves as a useful base class for scalar members and can be used for cases where type checking is not needed (like private attributes).
Initialize a Value.
Parameters : | default : object, optional
factory : callable, optional
|
---|
Bases: atom.scalars.Value
A value which can be assigned once and is then read-only.
Bases: atom.scalars.Value
A value which cannot be changed from its default.
Bases: atom.scalars.Value
A value which is callable.
Bases: atom.scalars.Value
A value of type bool.
Bases: atom.scalars.Value
A value of type int.
By default, ints are strictly typed. Pass strict=False to the constructor to enable int casting for longs and floats.
Bases: atom.scalars.Value
A value of type long.
By default, ints are promoted to longs. Pass strict=True to the constructor to enable strict long checking.
Bases: atom.scalars.Value
A value of type float.
By default, ints and longs will be promoted to floats. Pass strict=True to the constructor to enable strict float checking.
Bases: atom.scalars.Value
A value of type str.
By default, unicode strings will be promoted to plain strings. Pass strict=True to the constructor to enable strict string checking.
Bases: atom.scalars.Value
A value of type unicode.
By default, plain strings will be promoted to unicode strings. Pass strict=True to the constructor to enable strict unicode checking.
Bases: atom.scalars.Value
An integer value clipped to a range.
Bases: atom.scalars.Value
A float value clipped to a range.