AlkantarClanX12

Your IP : 13.59.234.182


Current Path : /proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/copy.cpython-311.opt-1.pyc

�

c��f�!��F�dZddlZddlZddlmZGd�de��ZeZ	ddlm	Z	n
#e
$rdZ	YnwxYwgd�Zd�ZixZ
Zd	�Zed��eeeeeeeeeeeeejee��ee��ejej fD]Z!eee!<�e"ed
d��Z!e!�eee!<e#jee#<e$jee$<e%jee%<e&jee&<e	�
e	jee	<[[!dgfd�Z'ixZ(Zd�Z)e)eed��<e)eee��<e)eee��<e)ee<e)ee<e)ee<e)ee<e)ee<e)ee<e)eej*<e)ee<e)ee<e)eej<e)eej<e)eej <e)ee<e'fd
�Z+e+ee#<e'fd�Z,e,ee<e'fd�Z-e-ee$<e	�e-ee	<d�Z.e.eej/<[d�Z0	de'd�d�Z1[[[	dS)a�Generic (shallow and deep) copying operations.

Interface summary:

        import copy

        x = copy.copy(y)        # make a shallow copy of y
        x = copy.deepcopy(y)    # make a deep copy of y

For module specific errors, copy.Error is raised.

The difference between shallow and deep copying is only relevant for
compound objects (objects that contain other objects, like lists or
class instances).

- A shallow copy constructs a new compound object and then (to the
  extent possible) inserts *the same objects* into it that the
  original contains.

- A deep copy constructs a new compound object and then, recursively,
  inserts *copies* into it of the objects found in the original.

Two problems often exist with deep copy operations that don't exist
with shallow copy operations:

 a) recursive objects (compound objects that, directly or indirectly,
    contain a reference to themselves) may cause a recursive loop

 b) because deep copy copies *everything* it may copy too much, e.g.
    administrative data structures that should be shared even between
    copies

Python's deep copy operation avoids these problems by:

 a) keeping a table of objects already copied during the current
    copying pass

 b) letting user-defined classes override the copying operation or the
    set of components copied

This version does not copy types like module, class, function, method,
nor stack trace, stack frame, nor file, socket, window, nor any
similar types.

Classes can use the same interfaces to control copying that they use
to control pickling: they can define methods called __getinitargs__(),
__getstate__() and __setstate__().  See the documentation for module
"pickle" for information on these methods.
�N)�dispatch_tablec��eZdZdS)�ErrorN)�__name__�
__module__�__qualname__���+/opt/alt/python311/lib64/python3.11/copy.pyrr7s�������Dr
r)�PyStringMap)r�copy�deepcopyc��t|��}t�|��}|r||��St|t��rt	|��St|dd��}|�||��St
j|��}|�||��}nOt|dd��}|�|d��}n0t|dd��}|r|��}ntd|z���t|t��r|St|dg|�R�S)zlShallow copy operation on arbitrary Python objects.

    See the module's __doc__ string for more info.
    �__copy__N�
__reduce_ex__��
__reduce__z%un(shallow)copyable object of type %s)�type�_copy_dispatch�get�
issubclass�_copy_immutable�getattrrr�
isinstance�str�_reconstruct)�x�cls�copier�reductor�rvs     rr
r
Bs2���q�'�'�C�
�
�
��
$�
$�F�
���v�a�y�y���#�t���"��q�!�!�!�
�S�*�d�
+�
+�F�
���v�a�y�y���!�#�&�&�H���
�X�a�[�[����1�o�t�4�4������!���B�B��q�,��5�5�H��
K��X�Z�Z����C�c�I�J�J�J��"�c��������4�%�"�%�%�%�%r
c��|S�Nr	)rs rrrk����Hr
�CodeTypec��|�i}t|��}|�||��}||ur|St|��}t�|��}|�
|||��}n�t	|t��rt||��}n�t
|dd��}|�||��}n�tj|��}|r||��}nOt
|dd��}|�|d��}n0t
|dd��}|r|��}ntd|z���t|t��r|}nt||g|�R�}||ur|||<t||��|S)ziDeep copy operation on arbitrary Python objects.

    See the module's __doc__ string for more info.
    N�__deepcopy__rrrz"un(deep)copyable object of type %s)
�idrr�_deepcopy_dispatchr�_deepcopy_atomicrrrrrr�_keep_alive)	r�memo�_nil�d�yrrr r!s	         rrr�s����|���
�1���A�����D���A���}�}���
�q�'�'�C�
�
#�
#�C�
(�
(�F�
���F�1�d�O�O����c�4� � �	3� ��D�)�)�A�A��Q���5�5�F��!��F�4�L�L���)�-�c�2�2���L�!��!���B�B�&�q�/�4�@�@�H��+�%�X�a�[�[���#*�1�l�D�#A�#A��#�L�!)����B�B�"'� D�s� J�#L�#L�L��b�#�&�&�3��A�A�$�Q��2�r�2�2�2�A�	��z�z���Q���A�t�����Hr
c��|Sr#r	�rr,s  rr*r*�r$r
c�p�g}||t|��<|j}|D]}||||�����|Sr#)r(�append)rr,rr/r3�as      r�_deepcopy_listr5�sP��
�A��D��A���K�
�X�F�
�"�"����x�x��4� � �!�!�!�!��Hr
c�������fd�|D��}	�t|��S#t$rYnwxYwt||��D]\}}||urt|��}n�|}|S)Nc�(��g|]}�|�����Sr	r	)�.0r4rr,s  ��r�
<listcomp>z#_deepcopy_tuple.<locals>.<listcomp>�s%���&�&�&�q���!�T�	�	�&�&�&r
)r(�KeyError�zip�tuple)rr,rr/�k�js ``   r�_deepcopy_tupler?�s�����&�&�&�&�&�A�&�&�&�A�
��B�q�E�E�{����
�
�
���
�����A�q�	�	�����1��A�:�:��a���A��E��
���Hs�(�
5�5c��i}||t|��<|���D]\}}|||��||||��<�|Sr#)r(�items)rr,rr/�key�values      r�_deepcopy_dictrD�s[��
�A��D��A���K��g�g�i�i�7�7�
��U�!)��%��!6�!6��(�(�3��
�
����Hr
c�d�t|��|jt|j|����Sr#)r�__func__r�__self__r1s  r�_deepcopy_methodrH�s(���4��7�7�1�:�x��
�D�9�9�:�:�:r
c��	|t|���|��dS#t$r|g|t|��<YdSwxYw)aMKeeps a reference to the object x in the memo.

    Because we remember objects by their id, we have
    to assure that possibly temporary objects are kept
    alive by referencing them.
    We store a reference at the id of the memo, which should
    normally not be used unless someone tries to deepcopy
    the memo itself...
    N)r(r3r:r1s  rr+r+�s]����R��X�X����a� � � � � �������s��R��X�X��������s�(,�A
�A
)rc�����du}|r|r��fd�|D��}||�}	|r|	�t|��<|��|r�|���}t|	d��r|	�|��nyt|t��rt|��dkr|\}}
nd}
|�|	j�|��|
�+|
���D]\}}t|	||���|�C|r'|D]#}
�|
���}
|	�
|
���$n|D]}
|	�
|
���|�5|r&|D]"\}}�|���}�|���}||	|<�#n
|D]
\}}||	|<�|	S)Nc3�0�K�|]}�|���V��dSr#r	)r8�argrr,s  ��r�	<genexpr>z_reconstruct.<locals>.<genexpr>s/�����4�4�����d�#�#�4�4�4�4�4�4r
�__setstate__�)r(�hasattrrNrr<�len�__dict__�updaterA�setattrr3)rr,�func�args�state�listiter�dictiterr�deepr/�	slotstaterBrC�items `     `      rrrs�����t��D��5��5�4�4�4�4�4�t�4�4�4����d��A�����R��U�U�����	*��H�U�D�)�)�E��1�n�%�%�	+�
�N�N�5�!�!�!�!��%��'�'�
!�C��J�J�!�O�O�#(� ��y�y� �	�� ��
�!�!�%�(�(�(��$�"+�/�/�"3�"3�+�+�J�C���A�s�E�*�*�*�*����	� �
�
���x��d�+�+����������
�!�
�
�������������	�&�
�
�
��U��h�s�D�)�)�� ����-�-����#���
�
'�
�
�
��U���#����Hr
)NNN)2�__doc__�types�weakref�copyregr�	Exceptionr�error�org.python.corer�ImportError�__all__r
rr.rr�int�float�bool�complexrr<�bytes�	frozenset�range�slice�property�BuiltinFunctionType�Ellipsis�NotImplemented�FunctionType�ref�tr�list�dict�set�	bytearrayrr)r*r%r5r?rDrH�
MethodTyper+rr	r
r�<module>rzsm��0�0�d
��������"�"�"�"�"�"�	�	�	�	�	�I�	�	�	�
���+�+�+�+�+�+�+�������K�K�K�����(�
'�
'��$&�$&�$&�N����
�
�
�
�$�t�*�*�c�5�$���e�
��D�%���
�
#�T�T�(�^�^�T�T�.�5I�5I�
�
�g�k�
+���A��A�a�D�D��G�E�:�t�$�$���=��A�a�D�
�)��$��
�)��$��	���#���~��)���� �%�A�k�N��q���2
�2
�2
�2
�h���Q�
�
�
� ��$�$�t�*�*�
�$��$�$�x�.�.��*��$�$�~����	��#����%��
��$��
��'�
���%��	��#��$��%�.��
��$����%��/��%���(��%���!��'�+����(��%-�
�
�
�
���$��&.�
�
�
�
���%��%-�
�
�
�
���$����#�A�k�N�;�;�;�&��%�������"6:�+
�%�+
�+
�+
�+
�+
�Z
�7�K�K�Ks�)�3�3