[Zope] Catching the print

Dieter Maurer dieter@handshake.de
Fri, 24 Aug 2001 22:04:00 +0200 (CEST)


Peter Bengtsson writes:
 > > ....
 > > from sys import stdout
 > > stdout.flush()
 > > ....

 > It works good. However, I'll have to do this stdout python business each
 > time I want to print something?
Impatient people have to pay a price :-)

I think, I remember that "python" has an argument and an
environ variable that tell Python to keep "stdout" unbuffered
even if it is not a terminal.

Call "python -h" to see its options.


Dieter