]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34008: Allow to call Py_Main() after Py_Initialize() (GH-8043) (GH-8352)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 21 Jul 2018 00:16:22 +0000 (17:16 -0700)
committerVictor Stinner <vstinner@redhat.com>
Sat, 21 Jul 2018 00:16:22 +0000 (02:16 +0200)
commit03ec4df67d6b4ce93a2da21db7c84dff8259953f
treec47087d89707148936e251a888cacb21642c864a
parent49abd307d222e6fe85b5175eed6b6f87fc656a8d
bpo-34008: Allow to call Py_Main() after Py_Initialize() (GH-8043) (GH-8352)

Py_Main() can again be called after Py_Initialize(), as in Python
3.6. The new configuration is ignored, except of
_PyMainInterpreterConfig.argv which is used to update sys.argv.
(cherry picked from commit fb47bca9ee2d07ce96df94b4e4abafd11826eb01)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/test_embed.py
Misc/NEWS.d/next/C API/2018-07-02-10-58-11.bpo-34008.COewz-.rst [new file with mode: 0644]
Modules/main.c
Programs/_testembed.c
Python/pylifecycle.c