From: Guido van Rossum Date: Tue, 2 Dec 1997 20:41:39 +0000 (+0000) Subject: Make stdin unbuffered too, when PYTHONUNBUFFERED is specified. X-Git-Tag: v1.5b2~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c425d2f87bd39e4e8f4cc0260862d51eb72378e7;p=python Make stdin unbuffered too, when PYTHONUNBUFFERED is specified. --- diff --git a/Python/frozenmain.c b/Python/frozenmain.c index 755033c9ba..10fba54ce9 100644 --- a/Python/frozenmain.c +++ b/Python/frozenmain.c @@ -51,6 +51,7 @@ Py_FrozenMain(argc, argv) unbuffered = 1; if (unbuffered) { + setbuf(stdin, (char *)NULL); setbuf(stdout, (char *)NULL); setbuf(stderr, (char *)NULL); }