use 'with' to redirect stdout

Discussion in 'Python' started by Neal Becker, Feb 11, 2008.

  1. Neal Becker

    Neal Becker Guest

    Is there a simple way to use a 'with' statement to redirect stdout in a
    block?
     
    Neal Becker, Feb 11, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VisionSet
    Replies:
    6
    Views:
    9,694
    Sudsy
    Sep 20, 2003
  2. Elad
    Replies:
    0
    Views:
    436
  3. Sal
    Replies:
    1
    Views:
    999
  4. Andreas S
    Replies:
    3
    Views:
    286
    Eric Hodel
    Dec 9, 2006
  5. Replies:
    2
    Views:
    380
    A. Sinan Unur
    Dec 7, 2005
Loading...

Share This Page