ok
Direktori : /proc/thread-self/root/proc/self/root/lib64/python2.7/ |
Current File : //proc/thread-self/root/proc/self/root/lib64/python2.7/pprint.pyc |
� ]цdc @ s d Z d d l Z d d l Z y d d l m Z Wn! e k rU d d l m Z n Xd d d d d d g Z d j Z e Z e Z e Z d d d d d � Z d d d d � Z d � Z d � Z d � Z d � Z d d d � � YZ d � Z d � Z d d � Z e d k re � n d S( s/ 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. i����N( t StringIOt pprintt pformatt isreadablet isrecursivet safereprt PrettyPrinters , i iP c C s2 t d | d | d | d | � } | j | � d S( sA Pretty-print a Python object to a stream [default is sys.stdout].t streamt indentt widtht depthN( R R ( t objectR R R R t printer( ( s /usr/lib64/python2.7/pprint.pyR 7 s c C s"