Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.133.79.22
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : _weakrefset.cpython-310.opt-2.pyc
o

^b#�@s>ddlmZddlmZdgZGdd�d�ZGdd�d�ZdS)���ref)�GenericAlias�WeakSetc@s$eZdZdd�Zdd�Zdd�ZdS)�_IterationGuardcCst|�|_dS�N)r�
weakcontainer)�selfr�r
�4/usr/local/python-3.10/lib/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)�item�selfrefr	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	�itemrefrr
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	r�wrr
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
rr6[sz
WeakSet.clearcCs
|�|�Sr�r1r*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)rrrrrr5r
r
rro�zWeakSet.removecCr;r)rrrrrr5r
r
rrtr<zWeakSet.discardcCs&|jr|��|D]}|�|�q	dSr)rrr)r	�other�elementr
r
rr#ys
�zWeakSet.updatecCs|�|�|Sr)r#�r	r=r
r
r�__ior__s
zWeakSet.__ior__cC�|��}|�|�|Sr)r8�difference_update�r	r=�newsetr
r
r�
difference��
zWeakSet.differencecC�|�|�dSr)�__isub__r?r
r
rrB��zWeakSet.difference_updatecCs>|jr|��||ur|j��|S|j�dd�|D��|S)Ncs��|]}t|�VqdSrr��.0rr
r
r�	<genexpr>���z#WeakSet.__isub__.<locals>.<genexpr>)rrrr6rBr?r
r
rrH�s
�zWeakSet.__isub__cs���fdd�|D��S)Nc3s�|]	}|�vr|VqdSrr
rKr*r
rrM���z'WeakSet.intersection.<locals>.<genexpr>r7r?r
r*r�intersection��zWeakSet.intersectioncCrGr)�__iand__r?r
r
r�intersection_update�rIzWeakSet.intersection_updatecCs(|jr|��|j�dd�|D��|S)NcsrJrrrKr
r
rrM�rNz#WeakSet.__iand__.<locals>.<genexpr>)rrrrSr?r
r
rrR�szWeakSet.__iand__cC�|j�dd�|D��S)NcsrJrrrKr
r
rrM�rNz#WeakSet.issubset.<locals>.<genexpr>)r�issubsetr?r
r
rrU��zWeakSet.issubsetcCs|jttt|��kSr�rr"�maprr?r
r
r�__lt__�r,zWeakSet.__lt__cCrT)NcsrJrrrKr
r
rrM�rNz%WeakSet.issuperset.<locals>.<genexpr>)r�
issupersetr?r
r
rrZ�rVzWeakSet.issupersetcCs|jttt|��kSrrWr?r
r
r�__gt__�r,zWeakSet.__gt__cCs$t||j�stS|jttt|��kSr)�
isinstancer1�NotImplementedrr"rXrr?r
r
r�__eq__�szWeakSet.__eq__cCrAr)r8�symmetric_difference_updaterCr
r
r�symmetric_difference�rFzWeakSet.symmetric_differencecCrGr)�__ixor__r?r
r
rr_�rIz#WeakSet.symmetric_difference_updatecsB�jr����|ur�j���S�j��fdd�|D���S)Nc3s�|]	}t|�j�VqdSr)rr!rKr*r
rrM�rOz#WeakSet.__ixor__.<locals>.<genexpr>)rrrr6r_r?r
r*rra�s
�zWeakSet.__ixor__cCs|�dd�||fD��S)Ncss�|]
}|D]}|VqqdSrr
)rLrrr
r
rrM�s�z WeakSet.union.<locals>.<genexpr>r7r?r
r
r�union�rQz
WeakSet.unioncCst|�|��dkS)Nr)r)rPr?r
r
r�
isdisjoint�szWeakSet.isdisjointcCs
t|j�Sr)�reprrr*r
r
r�__repr__�r9zWeakSet.__repr__r)+rrrrrr(r+r/r4rr6r8r$rrr#r@rE�__sub__rBrHrP�__and__rSrRrU�__le__rYrZ�__ge__r[r^r`�__xor__r_rarb�__or__rcre�classmethodr�__class_getitem__r
r
r
rr$sN

			N)�_weakrefr�typesr�__all__rrr
r
r
r�<module>s

© 2025 GrazzMean