Your IP : 18.118.151.211


Current Path : /proc/self/root/opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python312/lib64/python3.12/__pycache__/reprlib.cpython-312.opt-1.pyc

�

�g���x�dZgd�ZddlZddlmZddlmZd
d�ZGd�d�Zd	�Z	e�Z
e
jZy)zGRedo the builtin repr() (representation) but with limits on most sizes.)�Repr�repr�recursive_repr�N)�islice)�	get_identc����fd�}|S)zGDecorator to make a repr function return fillvalue for a recursive callc�����t�����fd�}t�d�|_t�d�|_t�d�|_t�d�|_t�di�|_t�dd�|_|S)	Nc���t|�t�f}|�vr�S�j|�	�|�}�j|�|S#�j|�wxYw�N)�idr�add�discard)�self�key�result�	fillvalue�repr_running�
user_functions   ����./opt/alt/python312/lib64/python3.12/reprlib.py�wrapperz<recursive_repr.<locals>.decorating_function.<locals>.wrappersc����T�(�I�K�'�C��l�"� � ����S�!�
*�&�t�,���$�$�S�)��M���$�$�S�)�s�A
�
A�
__module__�__doc__�__name__�__qualname__�__annotations__�__type_params__�)�set�getattrrrrrrr)rrrrs` @�r�decorating_functionz+recursive_repr.<locals>.decorating_functionsu����u��		�%�]�L�A���!�-��;���"�=�*�=���&�}�n�E���")�-�9J�B�"O���")�-�9J�B�"O�����r)rr s` rrr	s����.�r!c��eZdZdddddddddd�	Zdddddddddd	dd
dd�
d
�Zd�Zd�Zd�Zdd�Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd�Zd�Zd�Zd�Zy)r�builtins�array�collections)	�tuple�listr$r�	frozenset�deque�dict�str�int�����(�...N�
�maxlevel�maxtuple�maxlist�maxarray�maxdict�maxset�maxfrozenset�maxdeque�	maxstring�maxlong�maxotherr�indentc
��||_||_||_||_||_||_||_||_|	|_|
|_	||_
||_|
|_yrr3)rr4r5r6r7r8r9r:r;r<r=r>rr?s              r�__init__z
Repr.__init__2s`��
!��
� ��
���� ��
�������(��� ��
�"������ ��
�"�����r!c�:�|j||j�Sr)�repr1r4)r�xs  rrz	Repr.reprEs���z�z�!�T�]�]�+�+r!c�@�t|�}|j}d|vr!|j�}dj|�}t	|d|zd�}|r?||j
vr	|||�St	|dd�}||j
|k(r	|||�S|j
||�S)N� �_�repr_r)�typer�split�joinr�_lookup�
repr_instance)rrD�level�cls�typename�parts�method�modules        rrCz
Repr.repr1Hs����1�g���<�<���(�?��N�N�$�E��x�x���H���w��1�4�8����t�|�|�+��a��'�'��S�,��5�F�����h�/�/��a��'�'��!�!�!�U�+�+r!c��|j�dj|�S|sy|j}t|t�r|dkrt	d|�d���|dz}	d|j
|z
dz|zz}|jdg|�d���dt|�xsdS#t$r}t
d	t|����|�d}~wwxYw)
Nz, �rz(Repr.indent cannot be negative int (was �)rFz,
�z,Repr.indent must be a str, int or None, not )	r?rK�
isinstancer,�
ValueErrorr4�	TypeErrorrI�len)r�piecesrNr?�sep�errors      r�_joinz
Repr._join\s����;�;���9�9�V�$�$��������f�c�"���z� �>�v�j��J���
�c�M�F�	��4�=�=�5�0�1�4��>�>�C�
�x�x��)�f�)�b�)�*�1�c�&�k�\�-A�T�B�B��	�	��>�t�F�|�n�M���
��	�s�B�	B=� B8�8B=c�P�t|�}|dkr|r
|j}n{|dz
}	|j}
t||�D�cgc]}|
||	���
}}||kDr|j	|j�|j||�}|dk(r|r|j�||z}|�|�|��Scc}w)NrrW)r[rrCr�appendr_r?)
rrDrN�left�right�maxiter�trail�n�s�newlevelrC�elemr\s
             r�_repr_iterablezRepr._repr_iterableps�����F���A�:�!����A��q�y�H��J�J�E�8>�q�'�8J�K�8J��e�D�(�+�8J�F�K��7�{��
�
�d�n�n�-��
�
�6�5�)�A��A�v�%�D�K�K�$7���
����E�*�*��
Ls�B#c�B�|j||dd|jd�S)N�(rV�,)rjr5�rrDrNs   r�
repr_tuplezRepr.repr_tuples!���"�"�1�e�S�#�t�}�}�c�J�Jr!c�@�|j||dd|j�S)N�[�])rjr6rns   r�	repr_listzRepr.repr_list�s���"�"�1�e�S�#�t�|�|�D�Dr!c��|sd|jzSd|jz}|j|||d|j�S)Nzarray('%s')z
array('%s', [�]))�typecoderjr7)rrDrN�headers    r�
repr_arrayzRepr.repr_array�s?��� �1�:�:�-�-� �1�:�:�-���"�"�1�e�V�T�4�=�=�I�Ir!c�\�|syt|�}|j||dd|j�S)Nzset()�{�})�_possibly_sortedrjr9rns   r�repr_setz
Repr.repr_set�s/�����Q����"�"�1�e�S�#�t�{�{�C�Cr!c�\�|syt|�}|j||dd|j�S)Nzfrozenset()zfrozenset({z}))r|rjr:rns   r�repr_frozensetzRepr.repr_frozenset�s6��� ��Q����"�"�1�e�]�D�#'�#4�#4�6�	6r!c�@�|j||dd|j�S)Nzdeque([ru)rjr;rns   r�
repr_dequezRepr.repr_deque�s���"�"�1�e�Y��d�m�m�L�Lr!c��t|�}|dk(ry|dkrd|jzdzS|dz
}|j}g}tt	|�|j
�D]-}|||�}||||�}	|j
|�d|	����/||j
kDr|j
|j�|j||�}
d|
�d�S)Nrz{}rzr{rWz: )r[rrCrr|r8rar_)rrDrNrfrhrCr\r�keyrepr�valreprrgs           r�	repr_dictzRepr.repr_dict�s�����F����6���A�:�����'�#�-�-��1�9���
�
�����*�1�-�t�|�|�<�C��C��*�G��A�c�F�H�-�G��M�M�g�w�7�8�=�
�t�|�|���M�M�$�.�.�)��J�J�v�u�%���}�r!c��tj|d|j�}t|�|jkDr�t	d|jdz
dz�}t	d|jdz
|z
�}tj|d||t|�|z
dz�}|d||j
z|t|�|z
dz}|S�Nr��)r#rr<r[�maxr�rrDrNrg�i�js      r�repr_strz
Repr.repr_str�s����M�M�!�O�T�^�^�,�-���q�6�D�N�N�"��A����q�(�1�,�-�A��A�t�~�~�a�'��)�*�A��
�
�a���e�a��A��q��	�l�2�3�A��"�1�����&��3�q�6�!�8�9��5�A��r!c��tj|�}t|�|jkDr\t	d|jdz
dz�}t	d|jdz
|z
�}|d||j
z|t|�|z
dz}|Sr�)r#rr[r=r�rr�s      r�repr_intz
Repr.repr_int�s~���M�M�!����q�6�D�L�L� ��A����Q���*�+�A��A�t�|�|�A�~�a�'�(�A��"�1�����&��3�q�6�!�8�9��5�A��r!c��	tj|�}t
|�|jkDr\td|jdz
dz�}td|jdz
|z
�}|d||jz|t
|�|z
dz}|S#t$r'd|jjt|�fzcYSwxYw)Nz<%s instance at %#x>rr�r�)
r#r�	Exception�	__class__rrr[r>r�rr�s      rrMzRepr.repr_instance�s���	J��
�
�a� �A�
�q�6�D�M�M�!��A��
�
�a��!�+�,�A��A�t�}�}�Q��q�(�)�A��"�1�����&��3�q�6�!�8�9��5�A����
�	J�)�Q�[�[�-A�-A�2�a�5�,I�I�I�	J�s�B
�
-B=�<B=)rU)rrrrLrArrCr_rjrorsrxr}rr�r�r�r�rMrr!rrr%s������������
�G��a��Q���q�1��B��u�T��&,�,�(C�(
+�K�E�J�D�6�M��$��r!rc�N�	t|�S#t$rt|�cYSwxYwr)�sortedr�r')rDs rr|r|�s)����a�y������A�w���s�

�$�$)r2)r�__all__r#�	itertoolsr�_threadrrrr|�aReprrrr!r�<module>r�s?��M�
,������8d�d�N�	
����z�z�r!

?>