
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
U*WW                 @   s    d dl mZ G dd deZdS )    )
MutableSetc               @   s   e Zd ZdZdd Zdd ZejZej	Z
ejZejZejZejZdd Zdd	 Zd
d Zdd Zdd Zdd Zedd ZdS )SetMixinzA
    Mix-in for sets.  You must define __iter__, add, remove
    c             C   s   d}x| D ]}|d7 }q
W |S )Nr       )selfZlengthitemr   r   !/usr/lib64/python3.6/_setmixin.py__len__	   s    
zSetMixin.__len__c             C   s   x| D ]}||krdS qW dS )NTFr   )r   r   Zhas_itemr   r   r   __contains__   s    
zSetMixin.__contains__c             C   s   t | S )N)set)r   r   r   r   copy   s    zSetMixin.copyc             C   s   | |O } d S )Nr   )r   otherr   r   r   update    s    zSetMixin.updatec             C   s   | |M } d S )Nr   )r   r   r   r   r   intersection_update#   s    zSetMixin.intersection_updatec             C   s   | |8 } d S )Nr   )r   r   r   r   r   difference_update&   s    zSetMixin.difference_updatec             C   s   | |N } d S )Nr   )r   r   r   r   r   symmetric_difference_update)   s    z$SetMixin.symmetric_difference_updatec             C   s(   y| j | W n tk
r"   Y nX d S )N)removeKeyError)r   r   r   r   r   discard,   s    zSetMixin.discardc             C   s   t |S )N)r   )clsitr   r   r   _from_iterable2   s    zSetMixin._from_iterableN)__name__
__module____qualname____doc__r	   r
   r   __le__issubset__ge__
issuperset__or__union__and__intersection__sub__
difference__xor__symmetric_differencer   r   r   r   r   r   classmethodr   r   r   r   r   r      s    r   N)collectionsr   r   r   r   r   r   <module>   s   