summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-01-09 18:53:14 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-01-09 18:53:14 (GMT)
commit0560843b8fe8d4dd9e830f7b3ae7984154914516 (patch)
treebe1fabb299e11cdc957e653592bbc7d658a9fc07 /Include
parent1483140772c3f6c4c1674f0fbfcaaa1b350d27a1 (diff)
downloadcpython-0560843b8fe8d4dd9e830f7b3ae7984154914516.zip
cpython-0560843b8fe8d4dd9e830f7b3ae7984154914516.tar.gz
cpython-0560843b8fe8d4dd9e830f7b3ae7984154914516.tar.bz2
Issue #4705: Fix the -u ("unbuffered binary stdout and stderr") command-line
flag to work properly. Furthermore, when specifying -u, the text stdout and stderr streams have line-by-line buffering enabled (the default being to buffer arbitrary chunks of data). Patch by Victor Stinner, test by me.
Diffstat (limited to 'Include')
-rw-r--r--Include/pydebug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pydebug.h b/Include/pydebug.h
index cd56196..0a31f5b 100644
--- a/Include/pydebug.h
+++ b/Include/pydebug.h
@@ -18,6 +18,7 @@ PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
PyAPI_DATA(int) Py_DivisionWarningFlag;
PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
PyAPI_DATA(int) Py_NoUserSiteDirectory;
+PyAPI_DATA(int) Py_UnbufferedStdioFlag;
/* this is a wrapper around getenv() that pays attention to
Py_IgnoreEnvironmentFlag. It should be used for getting variables like