]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38317: Fix PyConfig.warnoptions priority (GH-16478)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 29 Sep 2019 23:58:57 +0000 (16:58 -0700)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2019 23:58:57 +0000 (16:58 -0700)
commitc9ed9e6fc76323ed537fb79d4232bcd27d82c57e
tree32a06498ac936f1d1fded02332c6b5026b59032b
parent19cd5951ec4480c7cfcbcc379b36902312cfb8b8
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().
(cherry picked from commit fb4ae152a9930f0e00cae8b2807f534058cf341a)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
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