ascii tables

Irmen de Jong irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Thu May 29 14:28:21 EDT 2003


John Hunter wrote:
> I often need to print several equal length, homogeneous lists (some
> lists are strings, some ints, some floats), and I would like to make a
> nice ascii table for display, with configurable format strings for
> each column, row and column separators etc....  Anyone know of some
> code that does this?

This sounds like printing the results of a database query (the columns)...?
Perhaps gadfly (or another database package) includes some nifty 
column-pretty-printing code?

--Irmen






More information about the Python-list mailing list