From c425d2f87bd39e4e8f4cc0260862d51eb72378e7 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 2 Dec 1997 20:41:39 +0000 Subject: Make stdin unbuffered too, when PYTHONUNBUFFERED is specified. --- Python/frozenmain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/frozenmain.c b/Python/frozenmain.c index 755033c..10fba54 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); } -- cgit v0.12