]> granicus.if.org Git - python/commit
bpo-36763: PyConfig_Read() handles PySys_AddXOption() (GH-15431)
authorVictor Stinner <vstinner@redhat.com>
Fri, 23 Aug 2019 17:03:08 +0000 (18:03 +0100)
committerGitHub <noreply@github.com>
Fri, 23 Aug 2019 17:03:08 +0000 (18:03 +0100)
commit120b707a6d43452e067daa55a8fdca69f9424abc
tree1a58f651b55fde0a820646fdbf8b568657883273
parent1beb7c3de9c3d0e802e4267a11d937e8f024d661
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.
Include/internal/pycore_pylifecycle.h
Lib/test/test_embed.py
Misc/NEWS.d/next/C API/2019-08-23-18-45-11.bpo-36763.q3Kh8Z.rst [new file with mode: 0644]
Programs/_testembed.c
Python/initconfig.c
Python/sysmodule.c