]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] bpo-34206: Improve docs and test coverage for pre-init functions (GH-8023...
authorAlyssa Coghlan <ncoghlan@gmail.com>
Tue, 8 Oct 2024 09:30:06 +0000 (19:30 +1000)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 09:30:06 +0000 (09:30 +0000)
commit64391363ede1dd7af6566db4c9b6e4dbce3b6cb5
tree412d7913f104df29c8fd7ecd5f0f28f6c1d06f5d
parent9e61aa9b389a79412fb5bf757e3b9131527256a7
[3.13] bpo-34206: Improve docs and test coverage for pre-init functions (GH-8023) (#125092)

- move the Py_Main documentation from the very high level API section
  to the initialization and finalization section
- make it clear that it encapsulates a full Py_Initialize/Finalize
  cycle of its own
- point out that exactly which settings will be read and applied
  correctly when Py_Main is called after a separate runtime
  initialization call is version dependent
- be explicit that Py_IsInitialized can be called prior to
  initialization
- actually test that Py_IsInitialized can be called prior to
  initialization
- flush stdout in the embedding tests that run code so it appears
  in the expected order when running with "-vv"
- make "-vv" on the subinterpreter embedding tests less spammy

---------

(cherry picked from commit 7c4b6a68f263320a2dd19cd5ff63b35c964b1fa8)

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Doc/c-api/init.rst
Doc/c-api/init_config.rst
Doc/c-api/veryhigh.rst
Lib/test/test_embed.py
Misc/NEWS.d/next/C API/2018-06-30-21-48-16.bpo-34008.2Wjtm0.rst [new file with mode: 0644]
Misc/NEWS.d/next/Documentation/2018-07-04-20-35-25.bpo-34008.bqecIb.rst [new file with mode: 0644]
Programs/_testembed.c