diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-12-20 18:36:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 18:36:46 (GMT) |
commit | 9cfc00262c7f6b93072762eed1dc5d94fa3897f0 (patch) | |
tree | f40640841b04f938fc3b0a0628fa5c680887fd9e /Include | |
parent | 51eb1c6b9c0b382dfd6e0428eacff0c7891a6fc3 (diff) | |
download | cpython-9cfc00262c7f6b93072762eed1dc5d94fa3897f0.zip cpython-9cfc00262c7f6b93072762eed1dc5d94fa3897f0.tar.gz cpython-9cfc00262c7f6b93072762eed1dc5d94fa3897f0.tar.bz2 |
bpo-32030: Complete _PyCoreConfig_Read() (#4946)
* Add _PyCoreConfig.install_signal_handlers
* Remove _PyMain.config: _PyMainInterpreterConfig usage is now
restricted to pymain_init_python_main().
* Rename _PyMain.core_config to _PyMain.config
* _PyMainInterpreterConfig_Read() now creates the xoptions dictionary
from the core config
* Fix _PyMainInterpreterConfig_Read(): don't replace xoptions and
argv if they are already set.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pystate.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/pystate.h b/Include/pystate.h index 619e627..a481528 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -25,6 +25,7 @@ typedef PyObject* (*_PyFrameEvalFunction)(struct _frame *, int); typedef struct { + int install_signal_handlers; /* Install signal handlers? -1 means unset */ int ignore_environment; /* -E */ int use_hash_seed; /* PYTHONHASHSEED=x */ unsigned long hash_seed; @@ -62,6 +63,7 @@ typedef struct { #define _PyCoreConfig_INIT \ (_PyCoreConfig){ \ + .install_signal_handlers = -1, \ .use_hash_seed = -1, \ .coerce_c_locale = -1, \ .utf8_mode = -1, \ @@ -73,7 +75,7 @@ typedef struct { * See PEP 432 for final anticipated contents */ typedef struct { - int install_signal_handlers; + int install_signal_handlers; /* Install signal handlers? -1 means unset */ PyObject *argv; /* sys.argv list, can be NULL */ PyObject *executable; /* sys.executable str */ PyObject *prefix; /* sys.prefix str */ |