Package netaddr :: Module address :: Class StrategyDescriptor |
[hide private]
[frames] | no frames]

# Class StrategyDescriptor

source code

    object --+
             |
            StrategyDescriptor

A descriptor that checks strategy property assignments for validity and also keeps the addr_type property in sync with any changes made.

Instance Methods | [hide private]
__init__(self, strategies) Constructor. | source code
__set__(self, instance, value) | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, strategies) (Constructor) | source code
Constructor. Parameters: `strategies` - a list of strategy objects that are acceptable for assignment to the strategy property. Overrides: object.__init__