Non-buffering stdout

Discussion in 'Python' started by Cecil Westerhof, Mar 25, 2008.

  1. With python -u script, you can make stdout unbuffered. Is there a way to do
    it in the script itself? I use just a script with a shebang
    (#!/usr/bin/env python) and then it is not possible to use -u.
     
    Cecil Westerhof, Mar 25, 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. dh
    Replies:
    2
    Views:
    1,829
    Dario
    Feb 3, 2004
  2. Mathias Herrmann

    disable stdout buffering ?

    Mathias Herrmann, Oct 4, 2005, in forum: C Programming
    Replies:
    7
    Views:
    744
    Michael Wojcik
    Oct 4, 2005
  3. Chris McDonald
    Replies:
    5
    Views:
    270
    Kenny McCormack
    Feb 22, 2009
  4. Kaz Kylheku
    Replies:
    1
    Views:
    322
    Richard
    Feb 23, 2009
  5. Geoff Bache
    Replies:
    4
    Views:
    559
Loading...

Share This Page