Your IP : 18.223.209.114


Current Path : /opt/alt/python35/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/copy.cpython-35.opt-2.pyc



���]�"�@s]ddlZddlZddlmZddlZGdd�de�ZeZyddlm	Z	Wne
k
r~dZ	YnXdddgZdd�ZiZ
Zd	d
�ZxWed�eeeeeeeeeejee�ejejfD]Zeee<q�Weedd�Zedk	r2eee<x6d#D].Zeeed�Zedk	r9eee<q9Wdd�Z x!e!e"e#fD]Ze ee<q�Wdd�Z$e	dk	r�e$ee	<[dgdd�Z%iZ&Zdd�Z'e'eed�<e'eee�<e'ee<e'ee<e'ee<ye'ee(<Wne)k
rHYnXe'ee<e'ee<ye'eej*<Wne+k
r�YnXe'ee<e'eej<e'eej<e'eej<dd�Z,e,ee!<dd�Z-e-ee<dd�Z.e.ee"<e	dk	re.ee	<dd�Z/e/e&ej0<dd�Z1ddd �Z2[[Gd!d"�d"�Z3dS)$�N)�dispatch_tablec@seZdZdS)�ErrorN)�__name__�
__module__�__qualname__�rr�)/opt/alt/python35/lib64/python3.5/copy.pyr8sr)�PyStringMap�copy�deepcopycCst|�}tj|�}|r+||�Syt|t�}Wntk
rXd}YnX|rit|�St|dd�}|r�||�Stj|�}|r�||�}n[t|dd�}|r�|d�}n4t|dd�}|r�|�}ntd|��t	||d�S)NF�__copy__�
__reduce_ex__��
__reduce__z%un(shallow)copyable object of type %sr)
�type�_copy_dispatch�get�
issubclass�	TypeError�_copy_immutable�getattrrr�_reconstruct)�x�cls�copier�issc�reductor�rvrrrr
Cs0



cCs|S)Nr)rrrrrnsr�CodeType�complex�unicodecCst|�|�S)N)r)rrrr�_copy_with_constructor}sr!cCs
|j�S)N)r
)rrrr�_copy_with_copy_method�sr"c

Cs�|dkri}t|�}|j||�}||k	r@|St|�}tj|�}|rs|||�}nyt|t�}Wntk
r�d}YnX|r�t||�}n�t|dd�}|r�||�}n�tj|�}|r||�}	n[t|dd�}|r+|d�}	n4t|dd�}|rO|�}	nt	d|��t
||	d|�}||k	r�|||<t||�|S)Nr�__deepcopy__r
rrz"un(deep)copyable object of type %s�)�idrr�_deepcopy_dispatchrr�_deepcopy_atomicrrrr�_keep_alive)
r�memo�_nil�d�yrrrrrrrrr�sF



cCs|S)Nr)rr)rrrr'�sr'cCsAg}||t|�<x$|D]}|jt||��qW|S)N)r%�appendr)rr)r,�arrr�_deepcopy_list�s

r/cs��fdd�|D�}y�t|�SWntk
r?YnXx<t||�D]%\}}||k	rPt|�}PqPW|}|S)Ncsg|]}t|���qSr)r)�.0r.)r)rr�
<listcomp>�s	z#_deepcopy_tuple.<locals>.<listcomp>)r%�KeyError�zip�tuple)rr)r,�k�jr)r)r�_deepcopy_tuple�s
r7cCsSi}||t|�<x6|j�D](\}}t||�|t||�<q#W|S)N)r%�itemsr)rr)r,�key�valuerrr�_deepcopy_dict�s
 r;cCs"t|�|jt|j|��S)N)r�__func__r�__self__)rr)rrr�_deepcopy_method�sr>cCsGy|t|�j|�Wn%tk
rB|g|t|�<YnXdS)N)r%r-r2)rr)rrrr(�s

r(cCs4t|t�r|S|dkr%i}t|�}|dd�\}}|dkr`|d}nd}|dkr|d}nd}|dkr�|d}	nd}	|r�t||�}||�}
|
|t|�<|dk	r�|r�t||�}t|
d�r|
j|�n�t|t�rEt|�dkrE|\}}nd}|dk	rg|
jj	|�|dk	r�x*|j
�D]\}}
t|
||
�q�W|dk	r�x0|D](}|r�t||�}|
j|�q�W|	dk	r0xB|	D]:\}}
|r"t||�}t|
|�}
|
|
|<q�W|
S)N��r�__setstate__)
�
isinstance�str�lenrr%�hasattrrAr4�__dict__�updater8�setattrr-)r�info�deepr)�n�callable�args�state�listiter�dictiterr,�	slotstater9r:�itemrrrr
sX


!
rc@seZdZdS)�_EmptyClassN)rrrrrrrrSIsrS)rr )4�types�weakref�copyregr�builtins�	Exceptionr�errorZorg.python.corer	�ImportError�__all__r
rr+rr�int�float�boolrCr4�bytes�	frozenset�range�BuiltinFunctionType�Ellipsis�FunctionType�ref�tr�namer!�list�dict�setr"rr&r'r�	NameErrorr�AttributeErrorr/r7r;r>�
MethodTyper(rrSrrrr�<module>3s�
)



5
















7

?>