AlkantarClanX12

Your IP : 3.12.148.180


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/_weakrefset.cpython-310.opt-2.pyc

o

6��f#�@s>ddlmZddlmZdgZGdd�d�ZGdd�d�ZdS)���ref)�GenericAlias�WeakSetc@s$eZdZdd�Zdd�Zdd�ZdS)�_IterationGuardcCst|�|_dS�N)r�
weakcontainer)�selfr�r
�2/opt/alt/python310/lib64/python3.10/_weakrefset.py�__init__sz_IterationGuard.__init__cCs |��}|dur|j�|�|Sr)r�
_iterating�add)r	�wr
r
r�	__enter__sz_IterationGuard.__enter__cCs8|��}|dur|j}|�|�|s|��dSdSdSr)rr
�remove�_commit_removals)r	�e�t�br�sr
r
r�__exit__s
�z_IterationGuard.__exit__N)�__name__�
__module__�__qualname__rrrr
r
r
rrsrc@s&eZdZd@dd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�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<d=�Z&d>d?�Z'e(e)�Z*dS)ArNcCsFt�|_t|�fdd�}||_g|_t�|_|dur!|�|�dSdS)NcSs8|�}|dur|jr|j�|�dS|j�|�dSdSr)r
�_pending_removals�append�data�discard)�itemZselfrefr	r
r
r�_remove's�z!WeakSet.__init__.<locals>._remove)�setrrr rr
�update)r	rr r
r
rr%s�zWeakSet.__init__cCs<|jj}|jj}	z|�}Wn
tyYdSw||�q	r)r�poprr�
IndexError)r	r#rrr
r
rr5s
��zWeakSet._commit_removalsccsP�t|��|jD]}|�}|dur|Vq	Wd�dS1s!wYdSr)rr�r	Zitemrefrr
r
r�__iter__?s�

��"�zWeakSet.__iter__cCst|j�t|j�Sr)�lenrr�r	r
r
r�__len__H�zWeakSet.__len__cCs,zt|�}Wn
tyYdSw||jvS)NF)r�	TypeErrorr)r	rZwrr
r
r�__contains__Ks�
zWeakSet.__contains__cCs|jt|�ft|dd�fS)N�__dict__)�	__class__�list�getattrr(r
r
r�
__reduce__Rs
�zWeakSet.__reduce__cCs&|jr|��|j�t||j��dSr)rrrrrr �r	rr
r
rrVszWeakSet.addcCs|jr|��|j��dSr)rrr�clearr(r
r
rr3[sz
WeakSet.clearcCs
|�|�Sr�r.r(r
r
r�copy`�
zWeakSet.copycCsL|jr|��	z|j��}Wntytd�d�w|�}|dur%|Sq)NTzpop from empty WeakSet)rrrr#�KeyErrorr%r
r
rr#cs
��zWeakSet.popcC�"|jr|��|j�t|��dSr)rrrrrr2r
r
rro�zWeakSet.removecCr8r)rrrrrr2r
r
rrtr9zWeakSet.discardcCs&|jr|��|D]}|�|�q	dSr)rrr)r	�otherZelementr
r
rr"ys
�zWeakSet.updatecCs|�|�|Sr)r"�r	r:r
r
r�__ior__s
zWeakSet.__ior__cC�|��}|�|�|Sr)r5�difference_update�r	r:Znewsetr
r
r�
difference��
zWeakSet.differencecC�|�|�dSr)�__isub__r;r
r
rr>��zWeakSet.difference_updatecCs>|jr|��||ur|j��|S|j�dd�|D��|S)Ncs��|]}t|�VqdSrr��.0rr
r
r�	<genexpr>���z#WeakSet.__isub__.<locals>.<genexpr>)rrrr3r>r;r
r
rrC�s
�zWeakSet.__isub__cs���fdd�|D��S)Nc3s�|]	}|�vr|VqdSrr
rFr(r
rrH���z'WeakSet.intersection.<locals>.<genexpr>r4r;r
r(r�intersection��zWeakSet.intersectioncCrBr)�__iand__r;r
r
r�intersection_update�rDzWeakSet.intersection_updatecCs(|jr|��|j�dd�|D��|S)NcsrErrrFr
r
rrH�rIz#WeakSet.__iand__.<locals>.<genexpr>)rrrrNr;r
r
rrM�szWeakSet.__iand__cC�|j�dd�|D��S)NcsrErrrFr
r
rrH�rIz#WeakSet.issubset.<locals>.<genexpr>)r�issubsetr;r
r
rrP��zWeakSet.issubsetcCs|jttt|��kSr�rr!�maprr;r
r
r�__lt__�r*zWeakSet.__lt__cCrO)NcsrErrrFr
r
rrH�rIz%WeakSet.issuperset.<locals>.<genexpr>)r�
issupersetr;r
r
rrU�rQzWeakSet.issupersetcCs|jttt|��kSrrRr;r
r
r�__gt__�r*zWeakSet.__gt__cCs$t||j�stS|jttt|��kSr)�
isinstancer.�NotImplementedrr!rSrr;r
r
r�__eq__�szWeakSet.__eq__cCr=r)r5�symmetric_difference_updater?r
r
r�symmetric_difference�rAzWeakSet.symmetric_differencecCrBr)�__ixor__r;r
r
rrZ�rDz#WeakSet.symmetric_difference_updatecsB�jr����|ur�j���S�j��fdd�|D���S)Nc3s�|]	}t|�j�VqdSr)rr rFr(r
rrH�rJz#WeakSet.__ixor__.<locals>.<genexpr>)rrrr3rZr;r
r(rr\�s
�zWeakSet.__ixor__cCs|�dd�||fD��S)Ncss�|]
}|D]}|VqqdSrr
)rGrrr
r
rrH�s�z WeakSet.union.<locals>.<genexpr>r4r;r
r
r�union�rLz
WeakSet.unioncCst|�|��dkS)Nr)r'rKr;r
r
r�
isdisjoint�szWeakSet.isdisjointcCs
t|j�Sr)�reprrr(r
r
r�__repr__�r6zWeakSet.__repr__r)+rrrrrr&r)r,r1rr3r5r#rrr"r<r@�__sub__r>rCrK�__and__rNrMrP�__le__rTrU�__ge__rVrYr[�__xor__rZr\r]�__or__r^r`�classmethodr�__class_getitem__r
r
r
rr$sN

			N)�_weakrefr�typesr�__all__rrr
r
r
r�<module>s