diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-08-01 01:07:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 01:07:00 (GMT) |
commit | 9851227382431a40a138fdff994278d9e7743c74 (patch) | |
tree | 01758c7f68b8676d01cffe3ed6601a1d483e6cf8 /Include | |
parent | a4d20b2e5ece2120f129cb4dda951a6c2461e92d (diff) | |
download | cpython-9851227382431a40a138fdff994278d9e7743c74.zip cpython-9851227382431a40a138fdff994278d9e7743c74.tar.gz cpython-9851227382431a40a138fdff994278d9e7743c74.tar.bz2 |
bpo-34170: Rename _PyCoreConfig.unbuffered_stdip (GH-8594)
* Rename _PyCoreConfig.unbuffered_stdio to buffered_stdio
* Rename _PyCoreConfig.debug to parser_debug
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pystate.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Include/pystate.h b/Include/pystate.h index bc1e23e..b900843 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -148,7 +148,7 @@ typedef struct { Incremented by the -d command line option. Set by the PYTHONDEBUG environment variable. If set to -1 (default), inherit Py_DebugFlag value. */ - int debug; + int parser_debug; /* If equal to 0, Python won't try to write ``.pyc`` files on the import of source modules. @@ -185,13 +185,13 @@ typedef struct { !Py_NoUserSiteDirectory. */ int user_site_directory; - /* If greater than 0, enable unbuffered mode: force the stdout and stderr + /* If equal to 0, enable unbuffered mode: force the stdout and stderr streams to be unbuffered. - Set to 1 by the -u option. Set by the PYTHONUNBUFFERED environment - variable. If set to -1 (default), inherit Py_UnbufferedStdioFlag - value. */ - int unbuffered_stdio; + Set to 0 by the -u option. Set by the PYTHONUNBUFFERED environment + variable. + If set to -1 (default), it is set to !Py_UnbufferedStdioFlag. */ + int buffered_stdio; #ifdef MS_WINDOWS /* If greater than 1, use the "mbcs" encoding instead of the UTF-8 @@ -268,12 +268,12 @@ typedef struct { .inspect = -1, \ .interactive = -1, \ .optimization_level = -1, \ - .debug= -1, \ + .parser_debug= -1, \ .write_bytecode = -1, \ .verbose = -1, \ .quiet = -1, \ .user_site_directory = -1, \ - .unbuffered_stdio = -1, \ + .buffered_stdio = -1, \ _PyCoreConfig_WINDOWS_INIT \ ._install_importlib = 1, \ ._frozen = -1} |