summaryrefslogtreecommitdiff
path: root/dns/name.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2016-09-20 12:18:23 -0700
committerBob Halley <halley@dnspython.org>2016-09-20 12:18:23 -0700
commitf33b74d3417c47a9a469a7b003759331b584d331 (patch)
tree6b63b8af4dcd2ed56af2b25e8c5cdb0452d2d8c9 /dns/name.py
parent2495908454c1c5e2bdb663c5bbcfb12d428b4e0d (diff)
downloaddnspython-f33b74d3417c47a9a469a7b003759331b584d331.tar.gz
Document IDNA parameters.
Diffstat (limited to 'dns/name.py')
-rw-r--r--dns/name.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/dns/name.py b/dns/name.py
index 8db89fa..41ae4ca 100644
--- a/dns/name.py
+++ b/dns/name.py
@@ -412,6 +412,16 @@ class Name(object):
@param omit_final_dot: If True, don't emit the final dot (denoting the
root label) for absolute names. The default is False.
+ @type omit_final_dot: bool
+ @param uts46: If True, apply Unicode IDNA compatibility processing
+ as described in Unicode Technical Standard #46
+ (U{http://unicode.org/reports/tr46/})
+ @type uts46: bool
+ @param std3_rules: If True, apply STD3 rules for hostnames.
+ (You should only set this to True if you want to be very strict
+ about hostnames, and it's not appropropriate for domain names in
+ general.
+ @type std3_rules: bool
@rtype: string
"""
@@ -614,6 +624,22 @@ def from_unicode(text, origin=root, uts46=False, std3_rules=False,
Labels are encoded in IDN ACE form.
+ @param text: The text to convert into a name.
+ @type text: Unicode string
+ @param origin: The origin to append to non-absolute names.
+ @type origin: dns.name.Name
+ @param uts46: If True, apply Unicode IDNA compatibility processing
+ as described in Unicode Technical Standard #46
+ (U{http://unicode.org/reports/tr46/})
+ @type uts46: bool
+ @param std3_rules: If True, apply STD3 rules for hostnames.
+ (You should only set this to True if you want to be very strict
+ about hostnames, and it's not appropropriate for domain names in
+ general.
+ @type std3_rules: bool
+ @param transitional: If True, use the "transitional" mode described
+ in Unicode Technical Standard #46.
+ @type transitional: bool
@rtype: dns.name.Name object
"""