Printing database output in tabular form

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Nov 13 20:58:50 CET 2006


In <1163446803.990020.112810 at i42g2000cwa.googlegroups.com>, ronrsr wrote:

> when I try to print a web table containing output from a database, I am
> getting more info than I want- -
> 
> I would like this to print w'o the array('c',    AND I'd like the
> control characters to print as HTML control chars.

Look up the `tostring()` method on `array.array` objects and
`str.replace()` for replacing the line ends by '<br />'.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list