Package dns :: Module namedict :: Class NameDict
[show private | hide private]
[frames | no frames]

Class NameDict

object --+    
         |    
      dict --+
             |
            NameDict


A dictionary whose keys are dns.name.Name objects.
Method Summary
  __init__(self, *args, **kwargs)
a new object with type S, a subtype of T __new__(S, ...)
  __setitem__(self, key, value)
(key, value) tuple get_deepest_match(self, name)
Find the deepest match to namein the dictionary.

Instance Variable Summary
int max_depth - the maximum depth of the keys that have ever been added to the dictionary.

Method Details

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

get_deepest_match(self, name)

Find the deepest match to name in the dictionary.

The deepest match is the longest name in the dictionary which is a superdomain of name.
Parameters:
name - the name
           (type=dns.name.Name object)
Returns:
(key, value) tuple

Instance Variable Details

max_depth

the maximum depth of the keys that have ever been added to the dictionary.
Type:
int

Generated by Epydoc 1.1 on Sat Sep 6 01:38:31 2003 http://epydoc.sf.net