o
0i|_ @ s d Z ddlZddlZddlZddlZddlZ ddl
mZ g dZ
d$dddd d
dZd%dddd dd
ZddddZdd Zdd Zdd ZG dd dZdd ZG dd dZeeeeeeeedhZdd 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)pprintpformat
isreadableisrecursivesaferepr
PrettyPrinterpp P FTcompact
sort_dictsunderscore_numbersc C s$ t |||||||d}|| dS )zAPretty-print a Python object to a stream [default is sys.stdout].)streamindentwidthdepthr
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