| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
AttributeCollectionBase
Mixin, allows extension of instance attributes with `AttributeCollection`s
This mixin allows a class' instances' attributes and set of supported
operators to be extended with `AttributeCollection`s.
Note: this class provides a base for using `AttributeCollection`s, it is not
a base class of `AttributeCollection`. This have been a misnomer.
Methods:
- `_append_attribute_collection`: Append a new `AttributeCollection`
Class invariants:
1. an `AttributeCollectionBase` never contains two identical
`AttributeCollection`s
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__delattr__('name') <==> del x.name
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
x.__setattr__('name', value) <==> x.name = value
|
str(x)
|
Append a new `AttributeCollection`.
When attributes of collections overlap, the first of overlapping
attributes found in the lookup process is used and the others are
ignored. Lookup happens in the same order as collections were added. (It
is probably best to avoid overlaps.)
Parameters:
collection :: AttributeCollection
the collection to add
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0 on Mon Jul 19 11:49:29 2010 | http://epydoc.sourceforge.net |