On Apr 8, 1:40 pm, "aspineux" <[EMAIL PROTECTED]> wrote: > This code works like the python one, > I dont use buffered stdio f... functions, > but the more 'system call' read and write > > int main() > { > char buf[120]; > int len; > > while (len=read(1, buf, sizeof(buf))) { > write(1, buf, len); > } > return 0; > > } >
Yeah, I've noticed that too, altough I'm clueless on how stdio handles that differently. Now I'm wondering, what's the behaviour of the Python snippet that reads from stdout in Windows.. Can someone on Windows try it and report please? -- http://mail.python.org/mailman/listinfo/python-list