Edit File: _weakrefset.cpython-37.opt-1.pyc
B ����r}�c/������������������@���s2���d�dl�mZ�dgZG�dd��d�ZG�dd��d�ZdS�)�����)�ref�WeakSetc���������������@���s$���e�Zd�Zdd��Zdd��Zdd��ZdS�)�_IterationGuardc�������������C���s���t�|�|�_d�S�)N)r���� weakcontainer)�selfr�����r����0/opt/alt/python37/lib64/python3.7/_weakrefset.py�__init__���s����z_IterationGuard.__init__c�������������C���s ���|�����}|d�k r|j�|���|�S�)N)r���� _iterating�add)r����wr���r���r���� __enter__���s����z_IterationGuard.__enter__c�������������C���s0���|�����}|d�k r,|j}|�|���|s,|����d�S�)N)r���r ����remove�_commit_removals)r����e�t�br����sr���r���r����__exit__���s���� z_IterationGuard.__exit__N)�__name__� __module__�__qualname__r ���r ���r���r���r���r���r���r��� ���s���r���c���������������@���s��e�Zd�Zd>dd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��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�)?r���Nc�������������C���sB���t���|�_t|��fdd�}||�_g�|�_t���|�_|d�k r>|��|��d�S�)Nc�������������S���s2���|��}|d�k r.|j�r"|j�|���n|j�|���d�S�)N)r ����_pending_removals�append�data�discard)�itemZselfrefr���r���r���r����_remove&���s ����z!WeakSet.__init__.<locals>._remove)�setr���r���r���r���r ����update)r���r���r���r���r���r���r ���$���s����zWeakSet.__init__c�������������C���s(���|�j�}|�jj}x|r"||�����qW�d�S�)N)r���r���r����pop)r����lr���r���r���r���r���4���s����zWeakSet._commit_removalsc���������� ���c���s<���t�|���*�x"|�jD�]}|��}|d�k r|V��qW�W�d�Q�R�X�d�S�)N)r���r���)r����itemrefr���r���r���r����__iter__:���s ���� zWeakSet.__iter__c�������������C���s���t�|�j�t�|�j��S�)N)�lenr���r���)r���r���r���r����__len__C���s����zWeakSet.__len__c�������������C���s,���yt�|�}W�n�tk r ���dS�X�||�jkS�)NF)r���� TypeErrorr���)r���r���Zwrr���r���r����__contains__F���s ����zWeakSet.__contains__c�������������C���s���|�j�t|��ft|�dd��fS�)N�__dict__)� __class__�list�getattr)r���r���r���r���� __reduce__M���s����zWeakSet.__reduce__c�������������C���s&���|�j�r|�����|�j�t||�j���d�S�)N)r���r���r���r���r���r���)r���r���r���r���r���r���Q���s����zWeakSet.addc�������������C���s���|�j�r|�����|�j����d�S�)N)r���r���r����clear)r���r���r���r���r-���V���s����z WeakSet.clearc�������������C���s ���|���|��S�)N)r)���)r���r���r���r����copy[���s����zWeakSet.copyc�������������C���sX���|�j�r|�����xDy|�j���}W�n�tk r<���td�d��Y�nX�|��}|d�k r|S�qW�d�S�)Nzpop from empty WeakSet)r���r���r���r ����KeyError)r���r"���r���r���r���r���r ���^���s����zWeakSet.popc�������������C���s"���|�j�r|�����|�j�t|���d�S�)N)r���r���r���r���r���)r���r���r���r���r���r���j���s����zWeakSet.removec�������������C���s"���|�j�r|�����|�j�t|���d�S�)N)r���r���r���r���r���)r���r���r���r���r���r���o���s����zWeakSet.discardc�������������C���s*���|�j�r|�����x|D�]}|��|��qW�d�S�)N)r���r���r���)r����otherZelementr���r���r���r���t���s���� zWeakSet.updatec�������������C���s���|���|��|�S�)N)r���)r���r0���r���r���r����__ior__z���s���� zWeakSet.__ior__c�������������C���s���|�����}|�|��|S�)N)r.����difference_update)r���r0����newsetr���r���r���� difference~���s���� zWeakSet.differencec�������������C���s���|���|��d�S�)N)�__isub__)r���r0���r���r���r���r2�������s����zWeakSet.difference_updatec�������������C���s<���|�j�r|�����|�|kr"|�j����n|�j�dd��|D����|�S�)Nc�������������s���s���|�]}t�|�V��qd�S�)N)r���)�.0r���r���r���r���� <genexpr>����s����z#WeakSet.__isub__.<locals>.<genexpr>)r���r���r���r-���r2���)r���r0���r���r���r���r5�������s����zWeakSet.__isub__c����������������s���������fdd�|D���S�)Nc�������������3���s���|�]}|��kr|V��qd�S�)Nr���)r6���r���)r���r���r���r7�������s����z'WeakSet.intersection.<locals>.<genexpr>)r)���)r���r0���r���)r���r����intersection����s����zWeakSet.intersectionc�������������C���s���|���|��d�S�)N)�__iand__)r���r0���r���r���r����intersection_update����s����zWeakSet.intersection_updatec�������������C���s(���|�j�r|�����|�j�dd��|D����|�S�)Nc�������������s���s���|�]}t�|�V��qd�S�)N)r���)r6���r���r���r���r���r7�������s����z#WeakSet.__iand__.<locals>.<genexpr>)r���r���r���r:���)r���r0���r���r���r���r9�������s����zWeakSet.__iand__c�������������C���s���|�j��dd��|D���S�)Nc�������������s���s���|�]}t�|�V��qd�S�)N)r���)r6���r���r���r���r���r7�������s����z#WeakSet.issubset.<locals>.<genexpr>)r����issubset)r���r0���r���r���r���r;�������s����zWeakSet.issubsetc�������������C���s���|�j�ttt|��k�S�)N)r���r����mapr���)r���r0���r���r���r����__lt__����s����zWeakSet.__lt__c�������������C���s���|�j��dd��|D���S�)Nc�������������s���s���|�]}t�|�V��qd�S�)N)r���)r6���r���r���r���r���r7�������s����z%WeakSet.issuperset.<locals>.<genexpr>)r���� issuperset)r���r0���r���r���r���r>�������s����zWeakSet.issupersetc�������������C���s���|�j�ttt|��kS�)N)r���r���r<���r���)r���r0���r���r���r����__gt__����s����zWeakSet.__gt__c�������������C���s$���t�||�j�stS�|�jttt|��kS�)N)� isinstancer)����NotImplementedr���r���r<���r���)r���r0���r���r���r����__eq__����s����zWeakSet.__eq__c�������������C���s���|�����}|�|��|S�)N)r.����symmetric_difference_update)r���r0���r3���r���r���r����symmetric_difference����s���� zWeakSet.symmetric_differencec�������������C���s���|���|��d�S�)N)�__ixor__)r���r0���r���r���r���rC�������s����z#WeakSet.symmetric_difference_updatec����������������s@�����j�r��������|kr"��j����n��j���fdd�|D������S�)Nc�������������3���s���|�]}t�|��j�V��qd�S�)N)r���r���)r6���r���)r���r���r���r7�������s����z#WeakSet.__ixor__.<locals>.<genexpr>)r���r���r���r-���rC���)r���r0���r���)r���r���rE�������s����zWeakSet.__ixor__c�������������C���s���|���dd��|�|fD���S�)Nc�������������s���s���|�]}|D�] }|V��q qd�S�)Nr���)r6���r���r���r���r���r���r7�������s����z WeakSet.union.<locals>.<genexpr>)r)���)r���r0���r���r���r����union����s����z WeakSet.unionc�������������C���s���t�|��|��dkS�)Nr���)r$���r8���)r���r0���r���r���r���� isdisjoint����s����zWeakSet.isdisjoint)N)'r���r���r���r ���r���r#���r%���r'���r,���r���r-���r.���r ���r���r���r���r1���r4����__sub__r2���r5���r8����__and__r:���r9���r;����__le__r=���r>����__ge__r?���rB���rD����__xor__rC���rE���rF����__or__rG���r���r���r���r���r���#���sH��� N)�_weakrefr����__all__r���r���r���r���r���r����<module>���s���