Package gavo :: Package base :: Module complexattrs :: Class SetOfAtomsAttribute
[frames] | no frames]

Class SetOfAtomsAttribute

source code

          object --+            
                   |            
attrdef.AttributeDef --+        
                       |        
 attrdef.AtomicAttribute --+    
                           |    
        CollOfAtomsAttribute --+
                               |
                              SetOfAtomsAttribute
Known Subclasses:

is an attribute definition for an item containing many elements of the same type, when order doesn't matter but lookup times do.

It is constructed with an AttributeDef for the items. Note that it's safe to pass in lists as defaults since they are copied before being added to the instances, so you won't (and can't) have aliasing here.

Instance Methods
 
feed(self, ctx, instance, value) source code
 
feedObject(self, instance, value) source code
 
getCopy(self, instance, newParent, ctx) source code

Inherited from CollOfAtomsAttribute: __init__, iterEvents

Inherited from attrdef.AtomicAttribute: makeUserDoc, parse, unparse

Inherited from attrdef.AttributeDef: doCallbacks, iterParentMethods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  default_
  typeDesc_

Inherited from object: __class__

Method Details

feed(self, ctx, instance, value)

source code 
Overrides: attrdef.AttributeDef.feed

feedObject(self, instance, value)

source code 
Overrides: attrdef.AttributeDef.feedObject

getCopy(self, instance, newParent, ctx)

source code 
Overrides: attrdef.AttributeDef.getCopy

Property Details

default_

Get Method:
unreachable.default_(self)

typeDesc_

Get Method:
unreachable.typeDesc_(self)