summaryrefslogtreecommitdiff
path: root/Parser
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-07-25 01:37:05 +0200
committerGitHub <noreply@github.com>2018-07-25 01:37:05 +0200
commit53b7d4e40208d91eb30ae28821213b2d8f2befc4 (patch)
treec3d58a8726b64126e7dfa863f09bc7fa168d38a0 /Parser
parent95d34c2a37f4c5046f6439abef881925d34fe4ac (diff)
downloadcpython-git-53b7d4e40208d91eb30ae28821213b2d8f2befc4.tar.gz
bpo-34170: Add _PyCoreConfig.bytes_warning (GH-8447)
Add more fields to _PyCoreConfig: * _check_hash_pycs_mode * bytes_warning * debug * inspect * interactive * legacy_windows_fs_encoding * legacy_windows_stdio * optimization_level * quiet * unbuffered_stdio * user_site_directory * verbose * write_bytecode Changes: * Remove pymain_get_global_config() and pymain_set_global_config() which became useless. These functions have been replaced by _PyCoreConfig_GetGlobalConfig() and _PyCoreConfig_SetGlobalConfig(). * sys.flags.dont_write_bytecode value is now restricted to 1 even if -B option is specified multiple times on the command line. * PyThreadState_Clear() now uses the config from the current interpreter rather than using global Py_VerboseFlag
Diffstat (limited to 'Parser')
-rw-r--r--Parser/pgenmain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Parser/pgenmain.c b/Parser/pgenmain.c
index 20ef8a71f7..0a4b0c5da0 100644
--- a/Parser/pgenmain.c
+++ b/Parser/pgenmain.c
@@ -24,9 +24,9 @@
#include "parsetok.h"
#include "pgen.h"
-int Py_DebugFlag;
-int Py_VerboseFlag;
-int Py_IgnoreEnvironmentFlag;
+int Py_DebugFlag = 0;
+int Py_VerboseFlag = 0;
+int Py_IgnoreEnvironmentFlag = 0;
_PyRuntimeState _PyRuntime = _PyRuntimeState_INIT;
/* Forward */