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

Class FormatDescriptor

source code

object --+
         |
        FormatDescriptor

A descriptor that checks formatter property assignments for validity.

Instance Methods
 
__init__(self, default)
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, default)
(Constructor)

source code 

Constructor.

Parameters:
  • default - the default callable to use if the formatter property is None.
Overrides: object.__init__