Home | Trees | Index | Help |
|
---|
Package dns :: Module rrset :: Class RRset |
|
object
--+ |Set
--+ |Rdataset
--+ | RRset
A DNS RRset (named rdataset).
RRset inherits from Rdataset, and RRsets can be treated as Rdatasets in most cases. There are, however, a few notable exceptions. RRsets have different to_wire() and to_text() method arguments, reflecting the fact that RRsets always have an owner name.Method Summary | |
---|---|
Create a new RRset. | |
bool |
Two RRsets are equal if they have the same name and the same rdataset |
__repr__(self)
| |
__str__(self)
| |
Returns True if this rrset matches the specified class, type, covers, and deletion state. | |
Convert the RRset into DNS master file format. | |
Convert the RRset to wire format. | |
Make a (shallow) copy of the set. | |
Inherited from Rdataset | |
| |
Add the specified rdata to the rdataset. | |
Update the set, removing any elements from other which are not in both sets. | |
Update the set, adding any elements from other which are not already in the set. | |
Add all rdatas in other to self. | |
Set the TTL of the rdataset to be the lesser of the set's current TTL or the specified TTL. | |
Inherited from Set | |
| |
| |
Make a (shallow) copy of the set. | |
| |
| |
| |
| |
| |
| |
| |
| |
Make the set empty. | |
Make a (shallow) copy of the set. | |
the same type as self |
Return a new set which self - other, i.e. |
Update the set, removing any elements from other which are in the set. | |
Remove an item from the set if present. | |
the same type as self |
Return a new set which is the intersection of self and other. |
bool |
Is self a subset of other? |
bool |
Is self a superset of other? |
Remove an item from the set. | |
the same type as self |
Return a new set which is the union of self and other. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Instance Variable Summary | |
---|---|
Inherited from Rdataset | |
int | covers : The covered type. |
int | rdclass : The class of the rdataset |
int | rdtype : The type of the rdataset |
int | ttl : The DNS TTL (Time To Live) value |
Inherited from Set | |
list | items : A list of the items which are in the set |
Class Variable Summary | |
---|---|
list |
__slots__ = ['name', 'deleting']
|
member_descriptor |
deleting = <member 'deleting' of 'RRset' objects>
|
member_descriptor |
name = <member 'name' of 'RRset' objects>
|
Method Details |
---|
__init__(self,
name,
rdclass,
rdtype,
covers=0,
deleting=None)
Create a new RRset.
|
__eq__(self,
other)
Two RRsets are equal if they have the same name and the same
rdataset
|
match(self, name, rdclass, rdtype, covers, deleting=None)Returns True if this rrset matches the specified class, type, covers, and deletion state.
|
to_text(self, origin=None, relativize=True, **kw)Convert the RRset into DNS master file format.
|
to_wire(self, file, compress=None, origin=None, **kw)Convert the RRset to wire format.
|
_clone(self)Make a (shallow) copy of the set. There is a 'clone protocol' that subclasses of this class should use. To make a copy, first call your super's _clone() method, and use the object returned as the new instance. Then make shallow copies of the attributes defined in the subclass. This protocol allows us to write the set algorithms that return new instances (e.g. union) once, and keep using them in subclasses.
|
Class Variable Details |
---|
__slots__
|
deleting
|
name
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Apr 1 12:10:12 2004 | http://epydoc.sf.net |