classification
Title: Move and clarify Py_Main documentation
Type: enhancement Stage: patch review
Components: Documentation Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: open Resolution:
Dependencies: 34008 Superseder:
Assigned To: ncoghlan Nosy List: emilyemorehouse, eric.snow, ncoghlan
Priority: normal Keywords: patch

Created on 2018-07-24 13:37 by ncoghlan, last changed 2020-06-29 10:35 by vstinner.

Pull Requests
URL Status Linked Edit
PR 8023 open ncoghlan, 2018-07-24 13:40
Messages (3)
msg322301 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2018-07-24 13:37
In resolving issue 34008, we determined that we *do* support calling Py_Main after Py_Initialize, but it's not clear from that current documentation that this implies a Py_Finalize() call, so you don't need to call that again yourself (and it's actually an error to do so).

So this issue covers updating the draft PR I wrote at https://github.com/python/cpython/pull/8023 to move the Py_Main documentation into the initialization and finalization section, and clarify how it relates to the other initialization and finalization functions.
msg372503 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2020-06-28 07:27
Adjusted target versions, as I never previously got around to merging this PR.
msg372504 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2020-06-28 07:32
Added 3.8 back in to the target versions. However, if the automatic backport doesn't work for that branch, I'll probably skip it rather than fixing any conflicts.
History
Date User Action Args
2020-06-29 10:35:59vstinnersetnosy: - vstinner
2020-06-28 07:32:56ncoghlansetmessages: + msg372504
versions: + Python 3.8
2020-06-28 07:27:33ncoghlansetmessages: + msg372503
versions: + Python 3.9, Python 3.10, - Python 3.7, Python 3.8
2018-07-26 14:28:13eric.snowsetnosy: + emilyemorehouse
2018-07-26 14:27:39eric.snowsetnosy: + eric.snow
2018-07-24 13:40:23ncoghlansetkeywords: + patch
pull_requests: + pull_request7964
2018-07-24 13:37:59ncoghlansetdependencies: + Do we support calling Py_Main() after Py_Initialize()?
2018-07-24 13:37:49ncoghlancreate