putting the output of a print statement into a string

Jon Perez jbperez808 at wahoo.com
Sun Mar 27 17:49:31 EST 2005


Thanks, man!  That was one fast reply...

Marc 'BlackJack' Rintsch wrote:
> 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!?
>
> Ciao,
> 	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list