Mini Shell
a
�DOg� � @ s\ d Z g d�ZddlZddlmZ ddlmZ d
dd�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 sL t | �t� f}|�v r� S ��|� z�| �}W ��|� n��|� 0 |S �N)�idr �add�discard)�self�key�result)� fillvalue�repr_running�
user_function� �/usr/lib64/python3.9/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 r 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__&