]> granicus.if.org Git - python/commit
bpo-33042: Fix pre-initialization sys module configuration (GH-6157)
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 25 Mar 2018 10:44:30 +0000 (20:44 +1000)
committerGitHub <noreply@github.com>
Sun, 25 Mar 2018 10:44:30 +0000 (20:44 +1000)
commitbc77eff8b96be4f035e665ab35c1d06e22f46491
tree68ca923578c2ac466dace4ce07b1571c77bae519
parentd02ac25ab0879f1a6de6937573bf00a16b7bd22e
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
Doc/c-api/init.rst
Doc/c-api/sys.rst
Doc/whatsnew/3.7.rst
Lib/test/test_embed.py
Misc/NEWS.d/next/C API/2018-03-20-21-43-09.bpo-33042.FPFp64.rst [new file with mode: 0644]
Programs/_testembed.c
Python/sysmodule.c