Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
 ‹EYc@s dZdefd„ƒYZdS(sA simple Set class.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.

    Sets are not in Python until 2.3, and rdata are not immutable so
    we cannot use sets.Set anyway.  This class implements subset of
    the 2.3 Set interface using a list as the container.

    @ivar items: A list of the items which are in the set
    @type items: listtitemscCs:g|_|dk	r6x|D]}|j|ƒqWndS(svInitialize the set.

        @param items: the initial set of items
        @type items: any iterable or None
        N(RtNonetadd(tselfRtitem((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__init__ s	
cCsdt|jƒS(Nsdns.simpleset.Set(%s)(treprR(R((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__repr__,scCs&||jkr"|jj|ƒndS(sAdd an item to the set.N(Rtappend(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyR/scCs|jj|ƒdS(sRemove an item from the set.N(Rtremove(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyR
4scCs,y|jj|ƒWntk
r'nXdS(s'Remove an item from the set if present.N(RR
t
ValueError(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pytdiscard8s
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((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt_clone?s
	cCs
|jƒS(s!Make a (shallow) copy of the set.(R(R((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__copy__QscCs
|jƒS(s!Make a (shallow) copy of the set.(R(R((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pytcopyUscCsSt|tƒstdƒ‚n||kr.dSx|jD]}|j|ƒq8WdS(sÌUpdate the set, adding any elements from other which are not
        already in the set.
        @param other: the collection of items with which to update the set
        @type other: Set object
        sother must be a Set instanceN(t
isinstanceRRRR(RtotherR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pytunion_updateYs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.
        @param other: the collection of items with which to update the set
        @type other: Set object
        sother must be a Set instanceN(RRRRRR
(RRR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pytintersection_updatefscCs[t|tƒstdƒ‚n||kr6g|_n!x|jD]}|j|ƒq@WdS(sÂUpdate the set, removing any elements from other which are in
        the set.
        @param other: the collection of items with which to update the set
        @type other: Set object
        sother must be a Set instanceN(RRRRR(RRR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pytdifference_updatevscCs|jƒ}|j|ƒ|S(s³Return a new set which is the union of I{self} and I{other}.

        @param other: the other set
        @type other: Set object
        @rtype: the same type as I{self}
        (RR(RRR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pytunion„s
cCs|jƒ}|j|ƒ|S(sºReturn a new set which is the intersection of I{self} and I{other}.

        @param other: the other set
        @type other: Set object
        @rtype: the same type as I{self}
        (RR(RRR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pytintersections
cCs|jƒ}|j|ƒ|S(sãReturn a new set which I{self} - I{other}, i.e. the items
        in I{self} which are not also in I{other}.

        @param other: the other set
        @type other: Set object
        @rtype: the same type as I{self}
        (RR(RRR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt
differenceœs	
cCs
|j|ƒS(N(R(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__or__©scCs
|j|ƒS(N(R(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__and__¬scCs
|j|ƒS(N(R(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__add__¯scCs
|j|ƒS(N(R(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__sub__²scCs|j|ƒ|S(N(R(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__ior__µs
cCs|j|ƒ|S(N(R(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__iand__¹s
cCs|j|ƒ|S(N(R(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__iadd__½s
cCs|j|ƒ|S(N(R(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/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.
        @param other: the collection of items with which to update the set
        @type other: any iterable typeN(R(RRR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pytupdateÅs
cCs
g|_dS(sMake the set empty.N(R(R((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pytclearÍscCsRx$|jD]}||jkr
tSq
Wx$|jD]}||jkr1tSq1WtS(N(RtFalsetTrue(RRR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__eq__ÑscCs|j|ƒS(N(R)(RR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__ne__ÜscCs
t|jƒS(N(tlenR(R((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__len__ßscCs
t|jƒS(N(titerR(R((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__iter__âscCs|j|S(N(R(Rti((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__getitem__åscCs|j|=dS(N(R(RR/((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt__delitem__èscCsIt|tƒstdƒ‚nx$|jD]}||jkr(tSq(WtS(s?Is I{self} a subset of I{other}?

        @rtype: bool
        sother must be a Set instance(RRRRR'R((RRR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pytissubsetëscCsIt|tƒstdƒ‚nx$|jD]}||jkr(tSq(WtS(sAIs I{self} a superset of I{other}?

        @rtype: bool
        sother must be a Set instance(RRRRR'R((RRR((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/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(((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyRsD										
					
																	
N(R6tobjectR(((sM/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/set.pyt<module>s