Package netaddr :: Module address :: Class AddrTypeDescriptor
[frames] | no frames]

Class AddrTypeDescriptor

source code

object --+
         |
        AddrTypeDescriptor

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

Instance Methods
 
__init__(self, addr_types)
Constructor.
source code
 
__set__(self, instance, value) source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, addr_types)
(Constructor)

source code 

Constructor.

Parameters:
  • addr_types - a list of address types constants that are acceptable for assignment to the addr_type property.
Overrides: object.__init__