[newbie]Is there a module for print object in a readable format?

bruno modulix onurb at xiludom.gro
Mon Oct 17 05:29:55 EDT 2005


James Gan wrote:
> I want the object printed in a readable format. For example,
> x =[a, b, c, [d e]] will be printed as:
> x--a
>  |_b
>  |_c
>  |___d
>    |_e
> 
> I tried pickled, marshel. They do different work. 
>
> Is there another
> module which do this kind of job?
> 

pprint

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list