diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-11-13 18:59:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 18:59:26 (GMT) |
commit | 00b137c72f90fbc39a6cd7e48b37c58d19977180 (patch) | |
tree | 445883d4e7861725c81f7d067b1d0aea17dd0698 /Include | |
parent | f966e5397ed8f5c42c185223fc9b4d750a678d02 (diff) | |
download | cpython-00b137c72f90fbc39a6cd7e48b37c58d19977180.zip cpython-00b137c72f90fbc39a6cd7e48b37c58d19977180.tar.gz cpython-00b137c72f90fbc39a6cd7e48b37c58d19977180.tar.bz2 |
bpo-35233: Fix _PyMainInterpreterConfig_Copy() (GH-10519)
* Fix _PyMainInterpreterConfig_Copy():
copy 'install_signal_handlers' attribute
* Add _PyMainInterpreterConfig_AsDict()
* Add unit tests on the main interpreter configuration
to test_embed.InitConfigTests
* test.pythoninfo: log also main_config
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pylifecycle.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h index ca1f24f..3d9365d 100644 --- a/Include/pylifecycle.h +++ b/Include/pylifecycle.h @@ -37,6 +37,8 @@ PyAPI_FUNC(void) _PyMainInterpreterConfig_Clear(_PyMainInterpreterConfig *); PyAPI_FUNC(int) _PyMainInterpreterConfig_Copy( _PyMainInterpreterConfig *config, const _PyMainInterpreterConfig *config2); +PyAPI_FUNC(PyObject*) _PyMainInterpreterConfig_AsDict( + const _PyMainInterpreterConfig *config); PyAPI_FUNC(_PyInitError) _Py_InitializeMainInterpreter( PyInterpreterState *interp, |