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.rdtypes.ANY.LOC Namespace Reference

Classes

class  LOC
 

Functions

def _exponent_of (what, desc)
 
def _float_to_tuple (what)
 
def _tuple_to_float (what)
 
def _encode_size (what, desc)
 
def _decode_size (what, desc)
 

Variables

 _pows = tuple(long(10**i) for i in range(0, 11))
 
float _default_size = 100.0
 
float _default_hprec = 1000000.0
 
float _default_vprec = 1000.0
 

Function Documentation

◆ _decode_size()

def dns.rdtypes.ANY.LOC._decode_size (   what,
  desc 
)
private

Definition at line 80 of file LOC.py.

References dns._compat.long.

Referenced by dns.rdtypes.ANY.LOC.LOC.from_wire().

◆ _encode_size()

def dns.rdtypes.ANY.LOC._encode_size (   what,
  desc 
)
private

Definition at line 73 of file LOC.py.

References dns.rdtypes.ANY.LOC._exponent_of(), and dns._compat.long.

Referenced by dns.rdtypes.ANY.LOC.LOC.to_wire().

◆ _exponent_of()

def dns.rdtypes.ANY.LOC._exponent_of (   what,
  desc 
)
private

Definition at line 35 of file LOC.py.

References dns._compat.long, and dns._compat.xrange.

Referenced by dns.rdtypes.ANY.LOC._encode_size().

◆ _float_to_tuple()

def dns.rdtypes.ANY.LOC._float_to_tuple (   what)
private

◆ _tuple_to_float()

def dns.rdtypes.ANY.LOC._tuple_to_float (   what)
private

Variable Documentation

◆ _default_hprec

float dns.rdtypes.ANY.LOC._default_hprec = 1000000.0
private

Definition at line 31 of file LOC.py.

◆ _default_size

float dns.rdtypes.ANY.LOC._default_size = 100.0
private

Definition at line 30 of file LOC.py.

◆ _default_vprec

float dns.rdtypes.ANY.LOC._default_vprec = 1000.0
private

Definition at line 32 of file LOC.py.

◆ _pows

dns.rdtypes.ANY.LOC._pows = tuple(long(10**i) for i in range(0, 11))
private

Definition at line 27 of file LOC.py.