I have a problem with this piece of code:\n\n====\nimport sys\nfor line in sys.stdin:\n print "You said!", line\n====\n\nNamely, it seems that the stdin buffers the input, so there is no reply until \na huge amount of text has bin written. The iterator returned by xreadlines \nhas the same behavior.\n\nThe stdin.readline() function doesn't share that behaviour (it returns as soon \nas I hit 'enter').\n\n??Is there any way to tell stdin's iterator not to buffer the input? Is it \npart of the standard file protocol?