Browse Source
bpo-36763: PyConfig_Read() handles PySys_AddXOption() (GH-15431)
bpo-36763: PyConfig_Read() handles PySys_AddXOption() (GH-15431)
PyConfig_Read() is now responsible to handle early calls to PySys_AddXOption() and PySys_AddWarnOption(). Options added by PySys_AddXOption() are now handled the same way than PyConfig.xoptions and command line -X options. For example, PySys_AddXOption(L"faulthandler") enables faulthandler as expected.pull/15442/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 115 additions and 30 deletions
-
2Include/internal/pycore_pylifecycle.h
-
17Lib/test/test_embed.py
-
2Misc/NEWS.d/next/C API/2019-08-23-18-45-11.bpo-36763.q3Kh8Z.rst
-
49Programs/_testembed.c
-
17Python/initconfig.c
-
58Python/sysmodule.c
@ -0,0 +1,2 @@ |
|||
Options added by ``PySys_AddXOption()`` are now handled the same way than |
|||
``PyConfig.xoptions`` and command line ``-X`` options. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue