[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 3:04:00 PM

On Mon, 11 Feb 2008 09:38:34 -0500, Neal Becker <ndbecker2@gmail.com> wrote:
>Jean-Paul Calderone wrote:
>
>> 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"?
>>
>
>I mean, whatever is the simplest solution. I don't know much about the
>subject of context manager at this point.
>

Something like http://aspn.activestate.com/ASPN/Cookbook/Python/Rec...
will probably do what you want.

Jean-Paul
1 Answer

Burton Busk

5/14/2009 1:20:00 PM

0


<stuthalblum@comcast.net> wrote in message
news:c1b256ee-3b7b-48b8-b9ed-2a73a9f7c874@v17g2000vbb.googlegroups.com...
On May 13, 10:46 am, Joe <obri6...@aol.com> wrote:
> On May 13, 9:52 am, "stuthalb...@comcast.net"
>
> <stuthalb...@comcast.net> wrote:
> > But those balls WERE hit, and DID go over the fence, and the hitters
> > circled the bases and stepped on home plate, and the scores went up.
>
> And their actions are forever tainted. None of them will get into the
> HOF. Imgaine that....Roger Clemons not in the hall....
>
> > The games counted. The records count. The players got away with it,
> > except for the perjury.
>
> The records are in the books. No one recognizes Bonds as the all time
> home run leader....not anyone who cares about the game. Bonds,
> Clemons, A-Rod, etc., the whole lot of them...will always be viewed as
> cheats with tainted stats. None will get in the Hall....they have no
> legacy to leave behind except a legacy of shame...

"You never answered whether Willie Mays's and Gaylord Perry's records
count.

They cheated, too."

And IIRC, Schmidt has admitted using amphetamines as well.