mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-33042: Fix pre-initialization sys module configuration (GH-6157)
- new test case for pre-initialization of sys.warnoptions and sys._xoptions - restored ability to call these APIs prior to Py_Initialize - updated the docs for the affected APIs to make it clear they can be called before Py_Initialize - also enhanced the existing embedding test cases to check for expected settings in the sys module
This commit is contained in:
parent
d02ac25ab0
commit
bc77eff8b9
7 changed files with 296 additions and 12 deletions
|
@ -0,0 +1,2 @@
|
|||
Embedding applications may once again call PySys_ResetWarnOptions,
|
||||
PySys_AddWarnOption, and PySys_AddXOption prior to calling Py_Initialize.
|
Loading…
Add table
Add a link
Reference in a new issue