]> granicus.if.org Git - python/commit
bpo-38317: Fix PyConfig.warnoptions priority (GH-16478)
authorVictor Stinner <vstinner@redhat.com>
Sun, 29 Sep 2019 23:40:17 +0000 (01:40 +0200)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2019 23:40:17 +0000 (01:40 +0200)
commitfb4ae152a9930f0e00cae8b2807f534058cf341a
tree557401018629793ae3de044ca7024384a0e4f3fa
parent58498bc7178608b1ab031994ca09c43889ce3e76
bpo-38317: Fix PyConfig.warnoptions priority (GH-16478)

Fix warnings options priority: PyConfig.warnoptions has the highest
priority, as stated in the PEP 587.

* Document options order in PyConfig.warnoptions documentation.
* Make PyWideStringList_INIT macro private: replace "Py" prefix
  with "_Py".
* test_embed: add test_init_warnoptions().
Doc/c-api/init_config.rst
Include/cpython/initconfig.h
Include/internal/pycore_initconfig.h
Include/internal/pycore_pylifecycle.h
Lib/test/test_embed.py
Misc/NEWS.d/next/Core and Builtins/2019-09-30-00-56-21.bpo-38317.pmqlIQ.rst [new file with mode: 0644]
Programs/_testembed.c
Python/initconfig.c
Python/preconfig.c
Python/sysmodule.c