3
\|Q ã
@ sì d Z ddlZddlZddlZddlZddlm Z
dddddd gZd!dd
œdd„Zd"dd
œdd„Z
dd„ Zdd„ Zdd„ ZG dd„ dƒZdd„ ZG dd „ d ƒZdd„ ZeeeeeeeeedƒhƒZdd„ Zd#dd„Z dd„ Z!e"d krèe ƒ 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é éP F)Úcompactc C s t |||||d�}|j| ƒ dS )zAPretty-print a Python object to a stream [default is sys.stdout].)ÚstreamÚindentÚwidthÚdepthr N)r r )Úobjectr r
r r r Zprinter© r ú/usr/lib64/python3.6/pprint.pyr / s c C s t ||||d�j| ƒS )z