diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-09 18:53:14 +0000 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-09 18:53:14 +0000 |
| commit | 0560843b8fe8d4dd9e830f7b3ae7984154914516 (patch) | |
| tree | be1fabb299e11cdc957e653592bbc7d658a9fc07 /Include/pydebug.h | |
| parent | 1483140772c3f6c4c1674f0fbfcaaa1b350d27a1 (diff) | |
| download | cpython-git-0560843b8fe8d4dd9e830f7b3ae7984154914516.tar.gz | |
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/pydebug.h')
| -rw-r--r-- | Include/pydebug.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pydebug.h b/Include/pydebug.h index cd56196229..0a31f5ba01 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 |
