Bases: atom.catom.Member
A value which allows objects of a given type or types.
Values will be tested using the PyObject_IsInstance C API call. This call is equivalent to isinstance(value, kind) and all the same rules apply.
The value of an Instance may be set to None.
Initialize an Instance.
Parameters : | kind : type or tuple of types
args : tuple, optional
kwargs : dict, optional
factory : callable, optional
|
---|
Bases: atom.instance.Instance
An Instance which delays resolving the type definition.
The first time the value is accessed or modified, the type will be resolved and the forward instance will behave identically to a normal instance.
Initialize a ForwardInstance.
Called to retrieve the default value.
This will resolve and instantiate the type. It will then update the internal default and validate handlers to behave like a normal instance member.