Inherits from
- HasTraits: enthought.traits.has_traits.HasTraits
Attributes
- other
used as circular reference back to owning BazInstance NOTE: Setting copy to 'ref' will mean that when BarInstance is cloned, the 'other' trait will not be copied, and will still point to the 'other' attribute of the original BarInstance.
other = Instance('BazInstance', copy = 'ref')
- ref
A Foo not owned by this object, may or may not be shared with other objects found via owned references (e.g. other.ref). For the tests, ref will always reference a Foo that is not owned by any of the objects reachable via owned references, and therefore, that Foo object should not be cloned.
ref = Instance(Foo, copy = 'ref')
- unique
A Foo owned by this object and not referenced by others.
unique = Instance(Foo)