Writing a nice formatted csv file

Sebastian Bassi sbassi at clubdelarazon.org
Wed May 2 10:28:17 EDT 2007


On 2 May 2007 07:14:04 -0700, redcic <cedric.louyot at gmail.com> wrote:
> And i get an out.txt file looking like:
> 1,2,3
> 10,20,30
> Whereas what I'd like to get is:
> 1,    2,    3,
> 10,  20,   30
> which is more readable.

The idea behind csv module is to produce and read csv files that are
"machine readable" rather than "human readable", so I think you should
write the file "by hand" to take into account those whitespace.



-- 
Sebastián Bassi (セバスティアン)
Diplomado en Ciencia y Tecnología.
GPG Fingerprint: 9470 0980 620D ABFC BE63 A4A4 A3DE C97D 8422 D43D
Club de la razón (www.clubdelarazon.org)


More information about the Python-list mailing list