putting the output of a print statement into a string

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Mar 28 00:26:21 CEST 2005

In <3aoq2kF6dov2dU1 at individual.net>, Jon Perez wrote:

> Question:
> Is there a way to somehow put the output of 'print exc_obj' into
> a string?

There are ways to do even that, but maybe ``str(exc_obj)`` is enough for
your needs!?

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list