Module pprint :: Class PrettyPrinter
[hide private]
[frames] | no frames]

_ClassType PrettyPrinter

Instance Methods [hide private]
 
__init__(self, indent=1, width=80, depth=None, stream=None)
Handle pretty printing operations onto a stream using a set of configured parameters.
 
pprint(self, object)
 
pformat(self, object)
 
isrecursive(self, object)
 
isreadable(self, object)
 
_format(self, object, stream, indent, allowance, context, level)
 
_repr(self, object, context, level)
 
format(self, object, context, maxlevels, level)
Format object for a specific context, returning a string and flags indicating whether the representation is 'readable' and whether the object represents a recursive construct.
Method Details [hide private]

__init__(self, indent=1, width=80, depth=None, stream=None)
(Constructor)

 
Handle pretty printing operations onto a stream using a set of
configured parameters.

indent
    Number of spaces to indent for each level of nesting.

width
    Attempted maximum number of columns in the output.

depth
    The maximum depth to print out nested structures.

stream
    The desired output stream.  If omitted (or false), the standard
    output stream available at construction will be used.