%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyc

�
�ac@sdefd��YZdS(tSetcBs:eZdZdgZd"d�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d �Z#d!�Z$RS(#s!A simple set class.

    This class was originally used to deal with sets being missing in
    ancient versions of python, but dnspython will continue to use it
    as these sets are based on lists and are thus indexable, and this
    ability is widely used in dnspython applications.
    titemscCs:g|_|dk	r6x|D]}|j|�qWndS(saInitialize the set.

        *items*, an iterable or ``None``, the initial set of items.
        N(RtNonetadd(tselfRtitem((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__init__s	
cCsdt|j�S(Nsdns.simpleset.Set(%s)(treprR(R((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__repr__)scCs&||jkr"|jj|�ndS(s Add an item to the set.
        N(Rtappend(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyR,scCs|jj|�dS(s%Remove an item from the set.
        N(Rtremove(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyR
3scCs,y|jj|�Wntk
r'nXdS(s0Remove an item from the set if present.
        N(RR
t
ValueError(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pytdiscard9s
cCs.|j}|j|�}t|j�|_|S(s�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.
        (t	__class__t__new__tlistR(Rtclstobj((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt_cloneBs
	cCs
|j�S(s*Make a (shallow) copy of the set.
        (R(R((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__copy__TscCs
|j�S(s*Make a (shallow) copy of the set.
        (R(R((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pytcopyZscCsSt|t�std��n||kr.dSx|jD]}|j|�q8WdS(saUpdate the set, adding any elements from other which are not
        already in the set.
        sother must be a Set instanceN(t
isinstanceRRRR(RtotherR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pytunion_update`scCsnt|t�std��n||kr.dSx9t|j�D](}||jkr>|jj|�q>q>WdS(s]Update the set, removing any elements from other which are not
        in both sets.
        sother must be a Set instanceN(RRRRRR
(RRR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pytintersection_updatelscCs[t|t�std��n||kr6g|_n!x|jD]}|j|�q@WdS(sWUpdate the set, removing any elements from other which are in
        the set.
        sother must be a Set instanceN(RRRRR(RRR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pytdifference_update{scCs|j�}|j|�|S(swReturn a new set which is the union of ``self`` and ``other``.

        Returns the same Set type as this set.
        (RR(RRR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pytunion�s
cCs|j�}|j|�|S(s�Return a new set which is the intersection of ``self`` and
        ``other``.

        Returns the same Set type as this set.
        (RR(RRR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pytintersection�s
cCs|j�}|j|�|S(s�Return a new set which ``self`` - ``other``, i.e. the items
        in ``self`` which are not also in ``other``.

        Returns the same Set type as this set.
        (RR(RRR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt
difference�s
cCs
|j|�S(N(R(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__or__�scCs
|j|�S(N(R(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__and__�scCs
|j|�S(N(R(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__add__�scCs
|j|�S(N(R(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__sub__�scCs|j|�|S(N(R(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__ior__�s
cCs|j|�|S(N(R(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__iand__�s
cCs|j|�|S(N(R(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__iadd__�s
cCs|j|�|S(N(R(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__isub__�s
cCs"x|D]}|j|�qWdS(s�Update the set, adding any elements from other which are not
        already in the set.

        *other*, the collection of items with which to update the set, which
        may be any iterable type.
        N(R(RRR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pytupdate�s
cCs
g|_dS(sMake the set empty.N(R(R((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pytclear�scCsRx$|jD]}||jkr
tSq
Wx$|jD]}||jkr1tSq1WtS(N(RtFalsetTrue(RRR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__eq__�scCs|j|�S(N(R)(RR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__ne__�scCs
t|j�S(N(tlenR(R((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__len__�scCs
t|j�S(N(titerR(R((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__iter__�scCs|j|S(N(R(Rti((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__getitem__�scCs|j|=dS(N(R(RR/((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt__delitem__�scCsIt|t�std��nx$|jD]}||jkr(tSq(WtS(sFIs this set a subset of *other*?

        Returns a ``bool``.
        sother must be a Set instance(RRRRR'R((RRR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pytissubset�scCsIt|t�std��nx$|jD]}||jkr(tSq(WtS(sHIs this set a superset of *other*?

        Returns a ``bool``.
        sother must be a Set instance(RRRRR'R((RRR((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt
issuperset�sN(%t__name__t
__module__t__doc__t	__slots__RRRRR
RRRRRRRRRRRRRR R!R"R#R$R%R&R)R*R,R.R0R1R2R3(((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyRsD												
	
																			
N(tobjectR(((s</opt/plesk/python/2.7/lib/python2.7/site-packages/dns/set.pyt<module>t

Zerion Mini Shell 1.0