dnspython  1.16.0
About: dnspython is a DNS toolkit (for Python 2.x) that supports almost all record types.
  Fossies Dox: dnspython-1.16.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dns.name.IDNA2003Codec Class Reference
Inheritance diagram for dns.name.IDNA2003Codec:
Collaboration diagram for dns.name.IDNA2003Codec:

Public Member Functions

def __init__ (self, strict_decode=False)
def encode (self, label)
def decode (self, label)
- Public Member Functions inherited from dns.name.IDNACodec
def __init__ (self)

Public Attributes


Detailed Description

IDNA 2003 encoder/decoder.

Definition at line 129 of file name.py.

Constructor & Destructor Documentation

◆ __init__()

def dns.name.IDNA2003Codec.__init__ (   self,
  strict_decode = False 
Initialize the IDNA 2003 encoder/decoder.

*strict_decode* is a ``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`.

Definition at line 132 of file name.py.

Member Function Documentation

◆ decode()

def dns.name.IDNA2003Codec.decode (   self,
Decode *label*.

Reimplemented from dns.name.IDNACodec.

Definition at line 153 of file name.py.

References dns.name._escapify(), and dns.name.IDNA2003Codec.strict_decode.

◆ encode()

def dns.name.IDNA2003Codec.encode (   self,
Encode *label*.

Reimplemented from dns.name.IDNACodec.

Definition at line 143 of file name.py.

Member Data Documentation

◆ strict_decode


Definition at line 141 of file name.py.

Referenced by dns.name.IDNA2003Codec.decode(), and dns.name.IDNA2008Codec.decode().

The documentation for this class was generated from the following file: