[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset a7f8dfd25a167ccfde9996c499fa38a2aba60022 by Victor Stinner in branch 'main': bpo-44113: Move the What's New entry to Deprecate section (GH-28974) https://github.com/python/cpython/commit/a7f8dfd25a167ccfde9996c499fa38a2aba60022 -- ___

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27262 pull_request: https://github.com/python/cpython/pull/28974 ___ Python tracker ___ __

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-14 Thread STINNER Victor
STINNER Victor added the comment: > Well, Py_FrozenMain() should be rewritten with PyConfig, I want to do that > for a long time, but I don't know how to test it. It would be nice to have a > very basic test for Py_FrozenMain(). I created bpo-44131: [C API] Add tests on Py_FrozenMain(). ---

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the help Dong-hee ;-) I close the issue, functions are now deprecated. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-14 Thread STINNER Victor
STINNER Victor added the comment: commit 7565586724692e2ad164d770af9675f7a261fe3a Author: Dong-hee Na Date: Thu May 13 10:19:46 2021 +0900 bpo-44113: Update fromzenmain not to use Py_SetProgramName (GH-26085) -- ___ Python tracker

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor
STINNER Victor added the comment: commit 6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d Author: Victor Stinner Date: Wed May 12 23:59:25 2021 +0200 bpo-44113: Deprecate old functions to config Python init (GH-26060) Deprecate the following functions to configure the Python initia

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +24724 pull_request: https://github.com/python/cpython/pull/26085 ___ Python tracker ___ _

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor
STINNER Victor added the comment: """ Check warning on line 82 in Python/frozenmain.c GitHub Actions / Ubuntu ‘Py_SetProgramName’ is deprecated [-Wdeprecated-declarations] """ Well, Py_FrozenMain() should be rewritten with PyConfig, I want to do that for a long time, but I don't know how to te

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24723 pull_request: https://github.com/python/cpython/pull/26084 ___ Python tracker ___ __

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor
STINNER Victor added the comment: PyConfig API was added to Python 3.8, so it's now widely available. Python 3.8 always switched to security fixes only phase. So IMO it's ok to deprecate the old API now. -- ___ Python tracker

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 nosy_count: 3.0 -> 4.0 pull_requests: +24722 pull_request: https://github.com/python/cpython/pull/26083 ___ Python tracker ___ __

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread Jouke Witteveen
Change by Jouke Witteveen : -- nosy: +joukewitteveen nosy_count: 2.0 -> 3.0 pull_requests: +24701 pull_request: https://github.com/python/cpython/pull/24876 ___ Python tracker

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +24700 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26060 ___ Python tracker ___ _

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor
New submission from STINNER Victor : The https://docs.python.org/dev/c-api/init.html documentation lists many functions which is the legacy way to configure the Python initialization. These functions are kept for backward compatibility but have flaws and are less reliable than the new PyConfi