dns :: name :: IDNA2003Codec :: Class IDNA2003Codec
[hide private]
[frames] | no frames]

Class IDNA2003Codec

source code

object --+    
         |    
 IDNACodec --+
             |
            IDNA2003Codec

IDNA 2003 encoder/decoder.

Instance Methods [hide private]
 
__init__(self, strict_decode=False)
Initialize the IDNA 2003 encoder/decoder.
source code
 
encode(self, label) source code
 
decode(self, label) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, strict_decode=False)
(Constructor)

source code 

Initialize the IDNA 2003 encoder/decoder.

Parameters:
  • strict_decode (bool) - If True, then IDNA2003 checking is done when decoding. This can cause failures if the name was encoded with IDNA2008. The default is False.
Overrides: object.__init__

encode(self, label)

source code 
Overrides: IDNACodec.encode

decode(self, label)

source code 
Overrides: IDNACodec.decode