选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
ó ¢báWc@s dZdefd„ƒYZdS(sA simple Set class.tSetcBs:eZdZdgZd"d„Zd„Zd„Zd„Zd„Z d„Z d„Z d „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((s+/usr/lib/python2.7/site-packages/dns/set.pyt__init__ s   cCsdt|jƒS(Nsdns.simpleset.Set(%s)(treprR(R((s+/usr/lib/python2.7/site-packages/dns/set.pyt__repr__,scCs&||jkr"|jj|ƒndS(sAdd an item to the set.N(Rtappend(RR((s+/usr/lib/python2.7/site-packages/dns/set.pyR/scCs|jj|ƒdS(sRemove an item from the set.N(Rtremove(RR((s+/usr/lib/python2.7/site-packages/dns/set.pyR 4scCs,y|jj|ƒWntk r'nXdS(s'Remove an item from the set if present.N(RR t ValueError(RR((s+/usr/lib/python2.7/site-packages/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((s+/usr/lib/python2.7/site-packages/dns/set.pyt_clone?s cCs |jƒS(s!Make a (shallow) copy of the set.(R(R((s+/usr/lib/python2.7/site-packages/dns/set.pyt__copy__QscCs |jƒS(s!Make a (shallow) copy of the set.(R(R((s+/usr/lib/python2.7/site-packages/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 isinstanceRR RR(RtotherR((s+/usr/lib/python2.7/site-packages/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(RRR RRR (RRR((s+/usr/lib/python2.7/site-packages/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(RRR RR (RRR((s+/usr/lib/python2.7/site-packages/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((s+/usr/lib/python2.7/site-packages/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((s+/usr/lib/python2.7/site-packages/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((s+/usr/lib/python2.7/site-packages/dns/set.pyt differenceœs  cCs |j|ƒS(N(R(RR((s+/usr/lib/python2.7/site-packages/dns/set.pyt__or__©scCs |j|ƒS(N(R(RR((s+/usr/lib/python2.7/site-packages/dns/set.pyt__and__¬scCs |j|ƒS(N(R(RR((s+/usr/lib/python2.7/site-packages/dns/set.pyt__add__¯scCs |j|ƒS(N(R(RR((s+/usr/lib/python2.7/site-packages/dns/set.pyt__sub__²scCs|j|ƒ|S(N(R(RR((s+/usr/lib/python2.7/site-packages/dns/set.pyt__ior__µs cCs|j|ƒ|S(N(R(RR((s+/usr/lib/python2.7/site-packages/dns/set.pyt__iand__¹s cCs|j|ƒ|S(N(R(RR((s+/usr/lib/python2.7/site-packages/dns/set.pyt__iadd__½s cCs|j|ƒ|S(N(R(RR((s+/usr/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. @param other: the collection of items with which to update the set @type other: any iterable typeN(R(RRR((s+/usr/lib/python2.7/site-packages/dns/set.pytupdateÅs cCs g|_dS(sMake the set empty.N(R(R((s+/usr/lib/python2.7/site-packages/dns/set.pytclearÍscCsRx$|jD]}||jkr tSq Wx$|jD]}||jkr1tSq1WtS(N(RtFalsetTrue(RRR((s+/usr/lib/python2.7/site-packages/dns/set.pyt__eq__ÑscCs|j|ƒ S(N(R)(RR((s+/usr/lib/python2.7/site-packages/dns/set.pyt__ne__ÜscCs t|jƒS(N(tlenR(R((s+/usr/lib/python2.7/site-packages/dns/set.pyt__len__ßscCs t|jƒS(N(titerR(R((s+/usr/lib/python2.7/site-packages/dns/set.pyt__iter__âscCs |j|S(N(R(Rti((s+/usr/lib/python2.7/site-packages/dns/set.pyt __getitem__åscCs|j|=dS(N(R(RR/((s+/usr/lib/python2.7/site-packages/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(RRR RR'R((RRR((s+/usr/lib/python2.7/site-packages/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(RRR RR'R((RRR((s+/usr/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+/usr/lib/python2.7/site-packages/dns/set.pyRsD                           N(R6tobjectR(((s+/usr/lib/python2.7/site-packages/dns/set.pyts