[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: use 'with' to redirect stdout

exarkun

2/11/2008 2:18:00 PM

On Mon, 11 Feb 2008 09:15:07 -0500, Neal Becker <ndbecker2@gmail.com> wrote:
>Is there a simple way to use a 'with' statement to redirect stdout in a
>block?

Do you mean "without writing a context manager to do the redirection"?

Jean-Paul