grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026B ²V…>FÜã@s2ddlmZdgZGdd„dƒZGdd„dƒZdS)é)ÚrefÚWeakSetc@s$eZdZdd„Zdd„Zdd„ZdS)Ú_IterationGuardcCst|ƒ|_dS)N)rÚ weakcontainer)Úselfr©rú0/opt/alt/python37/lib64/python3.7/_weakrefset.pyÚ__init__sz_IterationGuard.__init__cCs | ¡}|dk r|j |¡|S)N)rÚ _iteratingÚadd)rÚwrrrÚ __enter__s z_IterationGuard.__enter__cCs0| ¡}|dk r,|j}| |¡|s,| ¡dS)N)rr ÚremoveÚ_commit_removals)rÚeÚtÚbr ÚsrrrÚ__exit__s  z_IterationGuard.__exit__N)Ú__name__Ú __module__Ú __qualname__r r rrrrrr src@seZdZd>dd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„ZeZd d!„Zd"d#„Zd$d%„ZeZd&d'„Zd(d)„Zd*d+„ZeZd,d-„Zd.d/„ZeZd0d1„Zd2d3„Zd4d5„Z e Z!d6d7„Z"d8d9„Z#d:d;„Z$e$Z%d| |¡dS)NcSs2|ƒ}|dk r.|jr"|j |¡n |j |¡dS)N)r Ú_pending_removalsÚappendÚdataÚdiscard)ÚitemZselfrefrrrrÚ_remove&s z!WeakSet.__init__.._remove)Úsetrrrrr Úupdate)rrrrrrr $szWeakSet.__init__cCs(|j}|jj}x|r"|| ¡ƒqWdS)N)rrrÚpop)rÚlrrrrr4szWeakSet._commit_removalsc cs<t|ƒ�*x"|jD]}|ƒ}|dk r|VqWWdQRXdS)N)rr)rÚitemrefrrrrÚ__iter__:s   zWeakSet.__iter__cCst|jƒt|jƒS)N)Úlenrr)rrrrÚ__len__CszWeakSet.__len__cCs,y t|ƒ}Wntk r dSX||jkS)NF)rÚ TypeErrorr)rrZwrrrrÚ __contains__Fs  zWeakSet.__contains__cCs|jt|ƒft|ddƒfS)NÚ__dict__)Ú __class__ÚlistÚgetattr)rrrrÚ __reduce__Ms zWeakSet.__reduce__cCs&|jr| ¡|j t||jƒ¡dS)N)rrrr rr)rrrrrr Qsz WeakSet.addcCs|jr| ¡|j ¡dS)N)rrrÚclear)rrrrr-Vsz WeakSet.clearcCs | |¡S)N)r))rrrrÚcopy[sz WeakSet.copycCsX|jr| ¡xDy|j ¡}Wntk r<tdƒd‚YnX|ƒ}|dk r|SqWdS)Nzpop from empty WeakSet)rrrr ÚKeyError)rr"rrrrr ^sz WeakSet.popcCs"|jr| ¡|j t|ƒ¡dS)N)rrrrr)rrrrrrjszWeakSet.removecCs"|jr| ¡|j t|ƒ¡dS)N)rrrrr)rrrrrroszWeakSet.discardcCs*|jr| ¡x|D]}| |¡qWdS)N)rrr )rÚotherZelementrrrrts zWeakSet.updatecCs| |¡|S)N)r)rr0rrrÚ__ior__zs zWeakSet.__ior__cCs| ¡}| |¡|S)N)r.Údifference_update)rr0ÚnewsetrrrÚ difference~s zWeakSet.differencecCs| |¡dS)N)Ú__isub__)rr0rrrr2„szWeakSet.difference_updatecCs<|jr| ¡||kr"|j ¡n|j dd„|Dƒ¡|S)Ncss|]}t|ƒVqdS)N)r)Ú.0rrrrú Œsz#WeakSet.__isub__..)rrrr-r2)rr0rrrr5†s  zWeakSet.__isub__csˆ ‡fdd„|Dƒ¡S)Nc3s|]}|ˆkr|VqdS)Nr)r6r)rrrr7�sz'WeakSet.intersection..)r))rr0r)rrÚ intersection�szWeakSet.intersectioncCs| |¡dS)N)Ú__iand__)rr0rrrÚintersection_update“szWeakSet.intersection_updatecCs(|jr| ¡|j dd„|Dƒ¡|S)Ncss|]}t|ƒVqdS)N)r)r6rrrrr7˜sz#WeakSet.__iand__..)rrrr:)rr0rrrr9•szWeakSet.__iand__cCs|j dd„|Dƒ¡S)Ncss|]}t|ƒVqdS)N)r)r6rrrrr7œsz#WeakSet.issubset..)rÚissubset)rr0rrrr;›szWeakSet.issubsetcCs|jttt|ƒƒkS)N)rrÚmapr)rr0rrrÚ__lt__ŸszWeakSet.__lt__cCs|j dd„|Dƒ¡S)Ncss|]}t|ƒVqdS)N)r)r6rrrrr7£sz%WeakSet.issuperset..)rÚ issuperset)rr0rrrr>¢szWeakSet.issupersetcCs|jttt|ƒƒkS)N)rrr<r)rr0rrrÚ__gt__¦szWeakSet.__gt__cCs$t||jƒstS|jttt|ƒƒkS)N)Ú isinstancer)ÚNotImplementedrrr<r)rr0rrrÚ__eq__©s zWeakSet.__eq__cCs| ¡}| |¡|S)N)r.Úsymmetric_difference_update)rr0r3rrrÚsymmetric_difference®s zWeakSet.symmetric_differencecCs| |¡dS)N)Ú__ixor__)rr0rrrrC´sz#WeakSet.symmetric_difference_updatecs@ˆjrˆ ¡ˆ|kr"ˆj ¡nˆj ‡fdd„|Dƒ¡ˆS)Nc3s|]}t|ˆjƒVqdS)N)rr)r6r)rrrr7¼sz#WeakSet.__ixor__..)rrrr-rC)rr0r)rrrE¶s  zWeakSet.__ixor__cCs| dd„||fDƒ¡S)Ncss|]}|D] }|Vq qdS)Nr)r6rrrrrr7Àsz WeakSet.union..)r))rr0rrrÚunion¿sz WeakSet.unioncCst| |¡ƒdkS)Nr)r$r8)rr0rrrÚ isdisjointÃszWeakSet.isdisjoint)N)'rrrr rr#r%r'r,r r-r.r rrrr1r4Ú__sub__r2r5r8Ú__and__r:r9r;Ú__le__r=r>Ú__ge__r?rBrDÚ__xor__rCrErFÚ__or__rGrrrrr#sH     N)Ú_weakrefrÚ__all__rrrrrrÚs