dns ::
name ::
IDNA2008Codec ::
Class IDNA2008Codec
|
|
Class IDNA2008Codec
source code
object --+
|
IDNACodec --+
|
IDNA2008Codec
IDNA 2008 encoder/decoder.
*uts_46* is a ``bool``. If True, apply Unicode IDNA compatibility
processing as described in Unicode Technical Standard #46
(http://unicode.org/reports/tr46/). If False, do not apply the mapping.
The default is False.
*transitional* is a ``bool``: If True, use the
"transitional" mode described in Unicode Technical Standard
#46. The default is False.
*allow_pure_ascii* is a ``bool``. If True, then a label which
consists of only ASCII characters is allowed. This is less strict than
regular IDNA 2008, but is also necessary for mixed names, e.g. a name
with starting with "_sip._tcp." and ending in an IDN suffix
which would otherwise be disallowed. The default is False.
*strict_decode* is a ``bool``: If True, then IDNA2008 checking is done
when decoding. This can cause failures if the name was encoded with
IDNA2003. The default is False.
|
__init__(self,
uts_46=False,
transitional=False,
allow_pure_ascii=False,
strict_decode=False)
Initialize the IDNA 2008 encoder/decoder. |
source code
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
Inherited from object :
__class__
|
__init__(self,
uts_46=False,
transitional=False,
allow_pure_ascii=False,
strict_decode=False)
(Constructor)
| source code
|
Initialize the IDNA 2008 encoder/decoder.
- Overrides:
object.__init__
|