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

James Gan ganzhi at gmail.com
Tue Oct 18 21:36:41 EDT 2005


Yes, that's what I need! Thank you all

bruno modulix wrote:
> 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
> 



More information about the Python-list mailing list