On Oct 16, 9:04 pm, mattia <ger...@gmail.com> wrote: > Is there a way to print to an unbuffered output (like stdout)? I've seen > that something like sys.stdout.write("hello") works but it also prints > the number of characters!
http://docs.python.org/3.1/library/functions.html#print a suitable object passed that makes I/O behave as if unbuffered would be handy, if you don't want to stdout.flush() after a print() -- http://mail.python.org/mailman/listinfo/python-list