]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42260: Add _PyInterpreterState_SetConfig() (GH-23158)
authorVictor Stinner <vstinner@python.org>
Wed, 4 Nov 2020 23:45:56 +0000 (00:45 +0100)
committerGitHub <noreply@github.com>
Wed, 4 Nov 2020 23:45:56 +0000 (00:45 +0100)
commit048a35659aa8074afe7d7d054e7cea1f8ee6d366
treee9a019387bbd73cdbfcdceb76af7d21e15bc30d0
parent100964e0310d3a2040d0db976f7984d0507b2dbd
bpo-42260: Add _PyInterpreterState_SetConfig() (GH-23158)

* Inline _PyInterpreterState_SetConfig(): replace it with
  _PyConfig_Copy().
* Add _PyErr_SetFromPyStatus()
* Add _PyInterpreterState_GetConfigCopy()
* Add a new _PyInterpreterState_SetConfig() function.
* Add an unit which gets, modifies, and sets the config.
Doc/c-api/init_config.rst
Include/cpython/pystate.h
Include/internal/pycore_initconfig.h
Include/internal/pycore_interp.h
Lib/test/test_embed.py
Programs/_testembed.c
Python/initconfig.c
Python/pylifecycle.c
Python/pystate.c