관리-도구
편집 파일: pprint.cpython-310.pyc
o 6��f|_ � @ s� d Z ddlZddlZddlZddlZddlZ ddl mZ g d�Z d$dddd �d d�Zd%dddd �dd �Zdd�dd�Zdd� Zdd� Zdd� ZG dd� d�Zdd� ZG dd� d�Zeeeeeeeed�h�Zdd� Z d&dd �Z!d!d"� Z"e#d#kr|e!� dS dS )'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�pp� �P FT��compact� sort_dicts�underscore_numbersc C s$ t |||||||d�}|�| � dS )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 Zprinter� r �-/opt/alt/python310/lib64/python3.10/pprint.pyr 0 s �r c C s t ||||||d��| �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 r r r r 9 s ��r )r c O s t | g|�R d|i|�� dS )zPretty-print a Python objectr N)r )r r �args�kwargsr r r r @ s r c C s t � �| i dd�d S )z=Version of repr() which can handle recursive data structures.Nr �r � _safe_repr�r r r r r D � r c C � t � �| i dd�d S )z4Determine if saferepr(object) is readable by eval().Nr r r r r r r r H r r c C r )z8Determine if object requires a recursive representation.Nr � r r r r r r L r r c @ s&