[Python-ideas] Pythonic buffering in Py3 print()

Sérgio Surkamp sergio at gruposinternet.com.br
Mon Jan 9 14:05:57 CET 2012


Em Mon, 9 Jan 2012 13:30:55 +0300
anatoly techtonik <techtonik at gmail.com> escreveu:

> In Python 2 "print 'something', statement calls were unbuffered and
> immediately appeared on screen.

Only if Python is called with -u command line option, from the man page:

-u     Force  stdin,  stdout  and  stderr to be totally unbuffered.

Regards,
-- 
  .:''''':.
.:'        `     Sérgio Surkamp | Administrador de Redes
::    ........   sergio at gruposinternet.com.br
`:.        .:'
  `:,   ,.:'     *Grupos Internet S.A.*
    `: :'        R. Lauro Linhares, 2123 Torre B - Sala 201
     : :         Trindade - Florianópolis - SC
     :.'
     ::          +55 48 3234-4109
     :
     '           http://www.gruposinternet.com.br



More information about the Python-ideas mailing list