Your IP : 3.143.7.53
U
i�f� � @ s^ d Z dddgZddlZddlmZ ddlmZ d
d d�ZG d
d� d�Zdd� Z e� Z
e
jZdS )zGRedo the builtin repr() (representation) but with limits on most sizes.�Repr�repr�recursive_repr� N)�islice)� get_ident�...c s � fdd�}|S )zGDecorator to make a repr function return fillvalue for a recursive callc sX t � � �� �fdd�}t�d�|_t�d�|_t�d�|_t�d�|_t�di �|_|S )Nc sB t | �t� f}|�kr� S ��|� z�| �}W 5 ��|� X |S �N)�idr �add�discard)�self�key�result)� fillvalue�repr_running�
user_function� �,/opt/alt/python38/lib64/python3.8/reprlib.py�wrapper s
z<recursive_repr.<locals>.decorating_function.<locals>.wrapper�
__module__�__doc__�__name__�__qualname__�__annotations__)�set�getattrr r r r r )r r �r )r r r �decorating_function s z+recursive_repr.<locals>.decorating_functionr )r r r r r r s c @ s~ e Zd Zdd� Zdd� Zdd� Zddd �Zd
d� Zdd
� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� ZdS ) r c C sF d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _
d S )N� � � � �( )�maxlevel�maxtuple�maxlist�maxarray�maxdict�maxset�maxfrozenset�maxdeque� maxstring�maxlong�maxother)r r r r �__init__&