Make stdin unbuffered too, when PYTHONUNBUFFERED is specified.

This commit is contained in:
Guido van Rossum 1997-12-02 20:41:39 +00:00
parent 57ba4f35f7
commit c425d2f87b
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ Py_FrozenMain(argc, argv)
unbuffered = 1;
if (unbuffered) {
setbuf(stdin, (char *)NULL);
setbuf(stdout, (char *)NULL);
setbuf(stderr, (char *)NULL);
}