File: //lib/python3.12/__pycache__/pprint.cpython-312.pyc
�
    )!�h^^  �                   ��   � d Z ddlZddlZddlZddlZddlZ	ddl
mZ g d�Z
ddddd�d�Zddddd�d	�Zdd
�d�Zd� Zd
� Zd� Z G d� d�      Zd� Z G d� d�      Z eeeeeee ed�      h�      Zd� Z d� Z!y)a/  Support to pretty-print lists, tuples, & dictionaries recursively.
Very simple, but useful, especially in debugging data structures.
Classes
-------
PrettyPrinter()
    Handle pretty-printing operations onto a stream using a configured
    set of formatting parameters.
Functions
---------
pformat()
    Format a Python object into a pretty-printed representation.
pprint()
    Pretty-print a Python object to a stream [default is sys.stdout].
saferepr()
    Generate a 'standard' repr()-like value, but protect against recursive
    data structures.
�    N)�StringIO)�pprint�pformat�
isreadable�isrecursive�saferepr�
PrettyPrinter�ppFT��compact�
sort_dicts�underscore_numbersc          	      �J   � t        |||||||��      }|j                  | �       y)zAPretty-print a Python object to a stream [default is sys.stdout].)�stream�indent�width�depthr   r
   r   N)r	   r   )	�objectr   r   r   r   r   r
   r   �printers	            �/usr/lib/python3.12/pprint.pyr   r   0   s-   � � ��f�E���J�-�/�G� �N�N�6��    c                �B   � t        ||||||��      j                  | �      S )z<Format a Python object into a pretty-printed representation.)r   r   r   r   r
   r   )r	   r   )r   r   r   r   r   r
   r   s          r   r   r   9   s*   � � ��e�5�!(�Z�,>�@�@G����Pr   )r
   c                �&