AlkantarClanX12

Your IP : 13.58.18.135


Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/_weakrefset.cpython-37.opt-2.pyc

B

YI~d/�@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�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&dS)?rNcCsBt�|_t|�fdd�}||_g|_t�|_|dk	r>|�|�dS)NcSs2|�}|dk	r.|jr"|j�|�n|j�|�dS)N)r
�_pending_removals�append�data�discard)�itemZselfrefrrrr�_remove&s
z!WeakSet.__init__.<locals>._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)rrrrrr)rrrrrrQszWeakSet.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 ^szWeakSet.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�	<genexpr>�sz#WeakSet.__isub__.<locals>.<genexpr>)rrrr-r2)rr0rrrr5�szWeakSet.__isub__cs���fdd�|D��S)Nc3s|]}|�kr|VqdS)Nr)r6r)rrrr7�sz'WeakSet.intersection.<locals>.<genexpr>)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__.<locals>.<genexpr>)rrrr:)rr0rrrr9�szWeakSet.__iand__cCs|j�dd�|D��S)Ncss|]}t|�VqdS)N)r)r6rrrrr7�sz#WeakSet.issubset.<locals>.<genexpr>)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.<locals>.<genexpr>)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__.<locals>.<genexpr>)rrrr-rC)rr0r)rrrE�szWeakSet.__ixor__cCs|�dd�||fD��S)Ncss|]}|D]
}|Vq
qdS)Nr)r6rrrrrr7�sz WeakSet.union.<locals>.<genexpr>)r))rr0rrr�union�sz
WeakSet.unioncCst|�|��dkS)Nr)r$r8)rr0rrr�
isdisjoint�szWeakSet.isdisjoint)N)'rrrr	rr#r%r'r,rr-r.r rrrr1r4�__sub__r2r5r8�__and__r:r9r;�__le__r=r>�__ge__r?rBrD�__xor__rCrErF�__or__rGrrrrr#sH
			N)�_weakrefr�__all__rrrrrr�<module>s