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. | |
__add__(self,
other)
(inherited from Set )
| |
__and__(self,
other)
(inherited from Set )
| |
Make a (shallow) copy of the set. (inherited from Set )
| |
bool |
Two RRsets are equal if they have the same name and the same rdataset |
__iadd__(self,
other)
(inherited from Set )
| |
__iand__(self,
other)
(inherited from Set )
| |
__ior__(self,
other)
(inherited from Set )
| |
__isub__(self,
other)
(inherited from Set )
| |
__iter__(self)
(inherited from Set )
| |
__len__(self)
(inherited from Set )
| |
__ne__(self,
other)
(inherited from Rdataset )
| |
a new object with type S, a subtype of T |
|
__or__(self,
other)
(inherited from Set )
| |
__repr__(self)
| |
__str__(self)
| |
__sub__(self,
other)
(inherited from Set )
| |
Add the specified rdata to the rdataset. (inherited from Rdataset )
| |
Make the set empty. (inherited from Set )
| |
Make a (shallow) copy of the set. (inherited from Set )
| |
the same type as self |
Return a new set which self - other, i.e. (inherited from Set )
|
Update the set, removing any elements from other which are in the set. (inherited from Set )
| |
Remove an item from the set if present. (inherited from Set )
| |
the same type as self |
Return a new set which is the intersection of self and other. (inherited from Set )
|
Update the set, removing any elements from other which are not in both sets. (inherited from Rdataset )
| |
bool |
Is self a subset of other? (inherited from Set )
|
bool |
Is self a superset of other? (inherited from Set )
|
Returns True if this rrset matches the specified class, type, covers, and deletion state. | |
Remove an item from the set. (inherited from Set )
| |
Convert the RRset into DNS master file format. | |
Convert the RRset to wire format. | |
the same type as self |
Return a new set which is the union of self and other. (inherited from Set )
|
Update the set, adding any elements from other which are not already in the set. (inherited from Rdataset )
| |
Add all rdatas in other to self. (inherited from Rdataset )
| |
Set the TTL of the rdataset to be the lesser of the set's current TTL or the specified TTL. (inherited from Rdataset )
| |
Make a (shallow) copy of the set. |
Class Variable Summary | |
---|---|
list |
__slots__
|
member_descriptor |
deleting
|
member_descriptor |
name
|
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
|
__new__(S, ...)
|
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 1.1 on Sat Aug 7 11:32:47 2004 | http://epydoc.sf.net |